mirror of https://github.com/rust-lang/rust.git
Fix clippy warnings from last commit
This commit is contained in:
parent
1ab96db791
commit
609dd47410
|
@ -79,7 +79,7 @@ where
|
|||
}
|
||||
|
||||
let mut extra_envs = vec![];
|
||||
if let Ok(_) = std::env::var("CLIPPY_DOGFOOD") {
|
||||
if std::env::var("CLIPPY_DOGFOOD").is_ok() {
|
||||
let target_dir = std::env::var("CARGO_MANIFEST_DIR")
|
||||
.map(|m| {
|
||||
std::path::PathBuf::from(m)
|
||||
|
@ -88,7 +88,7 @@ where
|
|||
.to_string_lossy()
|
||||
.into_owned()
|
||||
})
|
||||
.unwrap_or("clippy_dogfood".to_string());
|
||||
.unwrap_or_else(|_| "clippy_dogfood".to_string());
|
||||
|
||||
extra_envs.push(("CARGO_TARGET_DIR", target_dir));
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue