clippy: Deny and fix `unneeded_field_pattern`
This commit is contained in:
parent
9cc2c869b4
commit
0855af00a9
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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)?;
|
||||
|
|
|
|||
|
|
@ -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(())
|
||||
|
|
|
|||
Loading…
Reference in New Issue