Skip to content

Commit 44e94bc

Browse files
committed
main new clippy fixes
1 parent 2180d73 commit 44e94bc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

crates/cargo-gpu/src/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl Build {
5151
);
5252
std::fs::create_dir_all(&self.build_args.output_dir)?;
5353
let canonicalized = self.build_args.output_dir.canonicalize()?;
54-
log::debug!("canonicalized output dir: {canonicalized:?}");
54+
log::debug!("canonicalized output dir: {}", canonicalized.display());
5555
self.build_args.output_dir = canonicalized;
5656

5757
// Ensure the shader crate exists

crates/cargo-gpu/src/spirv_source.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,11 @@ fn crate_path_canonical(shader_crate_path: &Path) -> anyhow::Result<PathBuf> {
188188
.context("could not get absolute path to shader crate")?;
189189

190190
if !canonical_path.is_dir() {
191-
log::error!("{shader_crate_path:?} is not a directory, aborting");
192-
anyhow::bail!("{shader_crate_path:?} is not a directory");
191+
log::error!(
192+
"{} is not a directory, aborting",
193+
shader_crate_path.display()
194+
);
195+
anyhow::bail!("{} is not a directory", shader_crate_path.display());
193196
}
194197
Ok(canonical_path)
195198
}

0 commit comments

Comments
 (0)