Remove useless format!()
This was a hint by `cargo clippy`
This commit is contained in:
parent
df72aaf977
commit
a395ed84cd
|
@ -151,13 +151,13 @@ pub fn get_args() -> Args {
|
||||||
|
|
||||||
if signal.is_some() && args.is_present("postpone") {
|
if signal.is_some() && args.is_present("postpone") {
|
||||||
// TODO: Error::argument_conflict() might be the better fit, usage was unclear, though
|
// TODO: Error::argument_conflict() might be the better fit, usage was unclear, though
|
||||||
Error::value_validation_auto(format!("--postpone and --signal are mutually exclusive"))
|
Error::value_validation_auto("--postpone and --signal are mutually exclusive".to_string())
|
||||||
.exit();
|
.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if signal.is_some() && args.is_present("kill") {
|
if signal.is_some() && args.is_present("kill") {
|
||||||
// TODO: Error::argument_conflict() might be the better fit, usage was unclear, though
|
// TODO: Error::argument_conflict() might be the better fit, usage was unclear, though
|
||||||
Error::value_validation_auto(format!("--kill and --signal is ambiguous.\n Hint: Use only '--signal SIGKILL' without --kill"))
|
Error::value_validation_auto("--kill and --signal is ambiguous.\n Hint: Use only '--signal SIGKILL' without --kill".to_string())
|
||||||
.exit();
|
.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue