style: share linting options across packages
Move the Rust and Clippy linting options into the Cargo manifest and share them with all the packages in the workspace. This ensures a consistent style in all packages.
This commit is contained in:
committed by
Henrik Friedrichsen
parent
dee424d141
commit
2a4178e069
@@ -20,8 +20,8 @@ impl TryFrom<&ArgMatches> for XTaskSubcommand {
|
||||
fn try_from(value: &ArgMatches) -> Result<Self, Self::Error> {
|
||||
if let Some(subcommand) = value.subcommand() {
|
||||
match subcommand.0 {
|
||||
"generate-manpage" => Ok(XTaskSubcommand::GenerateManpage),
|
||||
"generate-shell-completion" => Ok(XTaskSubcommand::GenerateShellCompletion),
|
||||
"generate-manpage" => Ok(Self::GenerateManpage),
|
||||
"generate-shell-completion" => Ok(Self::GenerateShellCompletion),
|
||||
_ => Err(Error::new(clap::error::ErrorKind::InvalidSubcommand)),
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user