We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b1f599 commit fefcca1Copy full SHA for fefcca1
src/bin/cargo/commands/fix.rs
@@ -131,12 +131,13 @@ pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
131
// code as we can.
132
let mut opts = args.compile_options(config, mode, Some(&ws))?;
133
134
+ let use_clippy = args.is_present("clippy");
135
+
136
let clippy_args = args
137
.value_of("clippy") // always yields None
138
.map(|s| s.split(' ').map(|s| s.to_string()).collect())
- .or_else(|| Some(vec![]));
-
139
- let use_clippy = args.is_present("clippy") || clippy_args.is_some();
+ .or_else(|| Some(vec![]))
140
+ .filter(|_| use_clippy);
141
142
if use_clippy && !config.cli_unstable().unstable_options {
143
return Err(failure::format_err!(
0 commit comments