diff options
| author | Michael Wright <mikerite@lavabit.com> | 2018-04-01 10:17:48 +0200 |
|---|---|---|
| committer | Michael Wright <mikerite@lavabit.com> | 2018-04-01 10:18:05 +0200 |
| commit | 609dd47410cac010a9a73e96a4b7237793d73ad5 (patch) | |
| tree | 118d2f60a6a4c13426487d478fa74239eeb4073f /src | |
| parent | 1ab96db7915f36bae5e1ad645861ef910b79904d (diff) | |
| download | rust-609dd47410cac010a9a73e96a4b7237793d73ad5.tar.gz rust-609dd47410cac010a9a73e96a4b7237793d73ad5.zip | |
Fix clippy warnings from last commit
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 0baeab7338e..5cc6fd674eb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)); }; |
