diff --git a/Cargo.toml b/Cargo.toml index c9565039..29d41819 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,6 +83,7 @@ clippy.type_complexity = "allow" clippy.enum_variant_names = "allow" clippy.fallible_impl_from = "deny" clippy.wildcard_enum_match_arm = "deny" +clippy.unneeded_field_pattern = "deny" [profile.container] inherits = "release" diff --git a/crates/radicle-cli/src/commands/cob.rs b/crates/radicle-cli/src/commands/cob.rs index a565797c..940414c5 100644 --- a/crates/radicle-cli/src/commands/cob.rs +++ b/crates/radicle-cli/src/commands/cob.rs @@ -150,7 +150,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> { repo, objects, type_name, - format: _, + .. } => { let repo = storage.repository(repo)?; if let Err(e) = show(objects, &repo, type_name.into(), &profile) { @@ -167,7 +167,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> { type_name, object, operation, - format: _, + .. }) => { let signer = &profile.signer()?; let repo = storage.repository_mut(repo)?; diff --git a/crates/radicle-cli/src/commands/follow.rs b/crates/radicle-cli/src/commands/follow.rs index 851542c1..aa214cd2 100644 --- a/crates/radicle-cli/src/commands/follow.rs +++ b/crates/radicle-cli/src/commands/follow.rs @@ -14,12 +14,8 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> { let mut node = radicle::Node::new(profile.socket()); match Operation::from(args) { - Operation::Follow { - nid, - alias, - verbose: _, - } => follow(nid, alias, &mut node, &profile)?, - Operation::List { alias, verbose: _ } => following(&profile, alias)?, + Operation::Follow { nid, alias, .. } => follow(nid, alias, &mut node, &profile)?, + Operation::List { alias, .. } => following(&profile, alias)?, } Ok(())