Fix clippy warnings and make them all errors

This commit is contained in:
Dustin J. Mitchell 2020-12-24 17:39:49 +00:00
parent 161c38807d
commit 8989b0d2e3
12 changed files with 24 additions and 23 deletions

View file

@ -17,6 +17,7 @@ use filter::filtered_tasks;
use modify::apply_modification;
/// Invoke the given Command in the context of the given settings
#[allow(clippy::needless_return)]
pub(crate) fn invoke(command: Command, settings: Config) -> Fallible<()> {
log::debug!("command: {:?}", command);
log::debug!("settings: {:?}", settings);
@ -88,7 +89,7 @@ pub(crate) fn invoke(command: Command, settings: Config) -> Fallible<()> {
subcommand: Subcommand::Version,
..
} => unreachable!(),
}
};
}
// utilities for invoke