Fix even more clippy warnings
This commit is contained in:
parent
bfecb18771
commit
57c6ed0c07
53 changed files with 276 additions and 520 deletions
|
@ -2057,10 +2057,7 @@ impl PpMode {
|
|||
|
||||
pub fn needs_analysis(&self) -> bool {
|
||||
use PpMode::*;
|
||||
match *self {
|
||||
PpmMir | PpmMirCFG => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(*self, PpmMir | PpmMirCFG)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue