Fix some clippy issues
This commit is contained in:
parent
e041c20eed
commit
a67d909627
@ -198,12 +198,10 @@ fn convert_message_format_to_rustfmt_args(
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
"human" => Ok(()),
|
"human" => Ok(()),
|
||||||
_ => {
|
_ => Err(format!(
|
||||||
return Err(format!(
|
"invalid --message-format value: {}. Allowed values are: short|json|human",
|
||||||
"invalid --message-format value: {}. Allowed values are: short|json|human",
|
message_format
|
||||||
message_format
|
)),
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,7 +213,7 @@ fn print_usage_to_stderr(reason: &str) {
|
|||||||
.expect("failed to write to stderr");
|
.expect("failed to write to stderr");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub enum Verbosity {
|
pub enum Verbosity {
|
||||||
Verbose,
|
Verbose,
|
||||||
Normal,
|
Normal,
|
||||||
|
@ -70,9 +70,9 @@ fn mandatory_separator() {
|
|||||||
.is_err()
|
.is_err()
|
||||||
);
|
);
|
||||||
assert!(
|
assert!(
|
||||||
!Opts::command()
|
Opts::command()
|
||||||
.try_get_matches_from(&["test", "--", "--emit"])
|
.try_get_matches_from(&["test", "--", "--emit"])
|
||||||
.is_err()
|
.is_ok()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user