We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41c562d commit b8501e1Copy full SHA for b8501e1
clippy_dev/src/bless.rs
@@ -62,7 +62,7 @@ fn update_reference_file(reference_file_path: PathBuf) {
62
}
63
64
fn build_dir() -> PathBuf {
65
- let profile = format!("{}", env::var("PROFILE").unwrap_or("debug".to_string()));
+ let profile = env::var("PROFILE").unwrap_or_else(|_| "debug".to_string());
66
let mut path = PathBuf::new();
67
path.push(CARGO_TARGET_DIR.clone());
68
path.push(profile);
0 commit comments