1
Fork 0

Fix even more clippy warnings

This commit is contained in:
Joshua Nelson 2020-10-26 21:02:48 -04:00
parent bfecb18771
commit 57c6ed0c07
53 changed files with 276 additions and 520 deletions

View file

@ -2057,10 +2057,7 @@ impl PpMode {
pub fn needs_analysis(&self) -> bool {
use PpMode::*;
match *self {
PpmMir | PpmMirCFG => true,
_ => false,
}
matches!(*self, PpmMir | PpmMirCFG)
}
}

View file

@ -199,10 +199,8 @@ pub fn invalid_output_for_target(sess: &Session, crate_type: CrateType) -> bool
_ => {}
}
}
if !sess.target.options.executables {
if crate_type == CrateType::Executable {
return true;
}
if !sess.target.options.executables && crate_type == CrateType::Executable {
return true;
}
false