Feed the dog 🐕

This commit is contained in:
Philipp Hansch 2020-12-12 15:14:54 +01:00
parent 41c562d4a5
commit b8501e1be1
No known key found for this signature in database
GPG Key ID: 188FE733728652B1

View File

@ -62,7 +62,7 @@ fn update_reference_file(reference_file_path: PathBuf) {
} }
fn build_dir() -> PathBuf { fn build_dir() -> PathBuf {
let profile = format!("{}", env::var("PROFILE").unwrap_or("debug".to_string())); let profile = env::var("PROFILE").unwrap_or_else(|_| "debug".to_string());
let mut path = PathBuf::new(); let mut path = PathBuf::new();
path.push(CARGO_TARGET_DIR.clone()); path.push(CARGO_TARGET_DIR.clone());
path.push(profile); path.push(profile);