File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ impl Runner {
151
151
format ! ( "{}-{}" , env, variation. name)
152
152
} ;
153
153
154
- println ! ( "Testing env: {}\n " , stage_id ) ;
154
+ println ! ( "Testing env: {stage_id }\n " ) ;
155
155
156
156
let target = format ! ( "{SPIRV_TARGET_PREFIX}{env}" ) ;
157
157
let libs = build_deps ( & self . deps_target_dir , & self . codegen_backend_path , & target) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ fn main() -> Result<()> {
26
26
..o
27
27
} ,
28
28
Some ( Err ( e) ) => {
29
- eprintln ! ( "Error parsing test options: {}" , e ) ;
29
+ eprintln ! ( "Error parsing test options: {e}" ) ;
30
30
process:: exit ( 1 ) ;
31
31
}
32
32
None => TestOpts {
@@ -120,8 +120,7 @@ fn main() -> Result<()> {
120
120
. map ( |filter| {
121
121
if filter. contains ( '/' ) {
122
122
// Convert path-like filter to test name format
123
- let path_filter = filter. replace ( '/' , "::" ) ;
124
- format ! ( "{}" , path_filter)
123
+ filter. replace ( '/' , "::" )
125
124
} else {
126
125
filter
127
126
}
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ impl Runner {
131
131
let config_json = serde_json:: to_string ( & config)
132
132
. map_err ( |e| RunnerError :: Config { msg : e. to_string ( ) } ) ?;
133
133
let mut config_file = NamedTempFile :: new ( ) ?;
134
- write ! ( config_file, "{}" , config_json ) . map_err ( |e| RunnerError :: Io { source : e } ) ?;
134
+ write ! ( config_file, "{config_json}" ) . map_err ( |e| RunnerError :: Io { source : e } ) ?;
135
135
trace ! ( "Config file created at {}" , config_file. path( ) . display( ) ) ;
136
136
137
137
let mut cmd = Command :: new ( "cargo" ) ;
@@ -294,7 +294,7 @@ impl Runner {
294
294
. join ( "::" )
295
295
} ,
296
296
) ;
297
- format ! ( "difftests::{}" , name )
297
+ format ! ( "difftests::{name}" )
298
298
}
299
299
300
300
pub fn collect_test_dirs ( root : & Path ) -> RunnerResult < Vec < PathBuf > > {
You can’t perform that action at this time.
0 commit comments