Skip to content

Commit b8501e1

Browse files
committed
Feed the dog 🐕
1 parent 41c562d commit b8501e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_dev/src/bless.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn update_reference_file(reference_file_path: PathBuf) {
6262
}
6363

6464
fn build_dir() -> PathBuf {
65-
let profile = format!("{}", env::var("PROFILE").unwrap_or("debug".to_string()));
65+
let profile = env::var("PROFILE").unwrap_or_else(|_| "debug".to_string());
6666
let mut path = PathBuf::new();
6767
path.push(CARGO_TARGET_DIR.clone());
6868
path.push(profile);

0 commit comments

Comments
 (0)