Skip to content

Commit 843deda

Browse files
committed
fix clippy lints
1 parent 7520e53 commit 843deda

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

tests/compiletests/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl Runner {
151151
format!("{}-{}", env, variation.name)
152152
};
153153

154-
println!("Testing env: {}\n", stage_id);
154+
println!("Testing env: {stage_id}\n");
155155

156156
let target = format!("{SPIRV_TARGET_PREFIX}{env}");
157157
let libs = build_deps(&self.deps_target_dir, &self.codegen_backend_path, &target);

tests/difftests/bin/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn main() -> Result<()> {
2626
..o
2727
},
2828
Some(Err(e)) => {
29-
eprintln!("Error parsing test options: {}", e);
29+
eprintln!("Error parsing test options: {e}");
3030
process::exit(1);
3131
}
3232
None => TestOpts {
@@ -120,8 +120,7 @@ fn main() -> Result<()> {
120120
.map(|filter| {
121121
if filter.contains('/') {
122122
// Convert path-like filter to test name format
123-
let path_filter = filter.replace('/', "::");
124-
format!("{}", path_filter)
123+
filter.replace('/', "::")
125124
} else {
126125
filter
127126
}

tests/difftests/bin/src/runner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl Runner {
131131
let config_json = serde_json::to_string(&config)
132132
.map_err(|e| RunnerError::Config { msg: e.to_string() })?;
133133
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 })?;
135135
trace!("Config file created at {}", config_file.path().display());
136136

137137
let mut cmd = Command::new("cargo");
@@ -294,7 +294,7 @@ impl Runner {
294294
.join("::")
295295
},
296296
);
297-
format!("difftests::{}", name)
297+
format!("difftests::{name}")
298298
}
299299

300300
pub fn collect_test_dirs(root: &Path) -> RunnerResult<Vec<PathBuf>> {

0 commit comments

Comments
 (0)