Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
fix: unneeded field pattern
Adrian Duke committed 3 months ago
commit 31397e99427e254c325e758c88c3b5c11c544675
parent ef1f39ad73dc0c0b8d967e509b8f6564e4154bc9
3 files changed +5 -8
modified 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"
modified 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)?;
modified 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(())