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.enum_variant_names = "allow"
|
||||||
clippy.fallible_impl_from = "deny"
|
clippy.fallible_impl_from = "deny"
|
||||||
clippy.wildcard_enum_match_arm = "deny"
|
clippy.wildcard_enum_match_arm = "deny"
|
||||||
|
clippy.unneeded_field_pattern = "deny"
|
||||||
|
|
||||||
[profile.container]
|
[profile.container]
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
|
||||||
repo,
|
repo,
|
||||||
objects,
|
objects,
|
||||||
type_name,
|
type_name,
|
||||||
format: _,
|
..
|
||||||
} => {
|
} => {
|
||||||
let repo = storage.repository(repo)?;
|
let repo = storage.repository(repo)?;
|
||||||
if let Err(e) = show(objects, &repo, type_name.into(), &profile) {
|
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,
|
type_name,
|
||||||
object,
|
object,
|
||||||
operation,
|
operation,
|
||||||
format: _,
|
..
|
||||||
}) => {
|
}) => {
|
||||||
let signer = &profile.signer()?;
|
let signer = &profile.signer()?;
|
||||||
let repo = storage.repository_mut(repo)?;
|
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());
|
let mut node = radicle::Node::new(profile.socket());
|
||||||
|
|
||||||
match Operation::from(args) {
|
match Operation::from(args) {
|
||||||
Operation::Follow {
|
Operation::Follow { nid, alias, .. } => follow(nid, alias, &mut node, &profile)?,
|
||||||
nid,
|
Operation::List { alias, .. } => following(&profile, alias)?,
|
||||||
alias,
|
|
||||||
verbose: _,
|
|
||||||
} => follow(nid, alias, &mut node, &profile)?,
|
|
||||||
Operation::List { alias, verbose: _ } => following(&profile, alias)?,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue