diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-12-11 18:08:05 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-12-11 23:02:19 +0100 |
| commit | b7795e135a642df024fc9bfee72abf7981c89ec8 (patch) | |
| tree | b3b5c42365b0cb15d067a6db5de1635e7fbea736 /src/bootstrap | |
| parent | db6c50998c929c9bab5ea2ffdddf5e0eef25d3c8 (diff) | |
fix clippy::{needless_bool, manual_unwrap_or}
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/sanity.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs index aafb71629ad..85b4a73439d 100644 --- a/src/bootstrap/sanity.rs +++ b/src/bootstrap/sanity.rs @@ -159,11 +159,7 @@ pub fn check(build: &mut Build) { panic!("the iOS target is only supported on macOS"); } - build - .config - .target_config - .entry(*target) - .or_insert(Target::from_triple(&target.triple)); + build.config.target_config.entry(*target).or_insert(Target::from_triple(&target.triple)); if target.contains("-none-") || target.contains("nvptx") { if build.no_std(*target) == Some(false) { |
