clippy: Deny and fix `unneeded_field_pattern`

This commit is contained in:
Adrian Duke 2026-01-13 15:06:47 +00:00 committed by Lorenz Leutgeb
parent 9cc2c869b4
commit 0855af00a9
3 changed files with 5 additions and 8 deletions

View File

@ -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"

View File

@ -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)?;

View File

@ -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(())