File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4343
4444 - name : Install toolchain
4545 run : |
46- rustup toolchain install 1.85 .0
47- rustup default 1.85 .0
46+ rustup toolchain install 1.88 .0
47+ rustup default 1.88 .0
4848 rustup component add clippy
4949
5050 - name : Setup Rust cache
Original file line number Diff line number Diff line change @@ -84,13 +84,13 @@ fn input(name: &str) -> String {
8484
8585async fn test_policy ( bundle_name : & str , data : Option < & str > ) -> AnyResult < serde_json:: Value > {
8686 let input = if let Some ( data) = data {
87- let input_bytes = tokio:: fs:: read ( input ( & format ! ( "{}.json" , data ) ) ) . await ?;
87+ let input_bytes = tokio:: fs:: read ( input ( & format ! ( "{data }.json" ) ) ) . await ?;
8888 serde_json:: from_slice ( & input_bytes[ ..] ) ?
8989 } else {
9090 serde_json:: Value :: Object ( serde_json:: Map :: default ( ) )
9191 } ;
9292 eval_policy (
93- & bundle ( & format ! ( "{}.rego.tar.gz" , bundle_name ) ) ,
93+ & bundle ( & format ! ( "{bundle_name }.rego.tar.gz" ) ) ,
9494 "fixtures" ,
9595 & input,
9696 )
You can’t perform that action at this time.
0 commit comments