Skip to content

Commit

Permalink
Fix clippy warnings in stacks signer
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Dec 17, 2024
1 parent c0a5e83 commit 906c012
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stacks-signer/src/chainstate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ enum ProposedBy<'a> {
CurrentSortition(&'a SortitionState),
}

impl<'a> ProposedBy<'a> {
impl ProposedBy<'_> {
pub fn state(&self) -> &SortitionState {
match self {
ProposedBy::LastSortition(x) => x,
Expand Down
6 changes: 2 additions & 4 deletions stacks-signer/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ use stacks_common::types::chainstate::StacksPrivateKey;

extern crate alloc;

#[derive(Parser, Debug)]
#[command(author, version, about)]
#[command(long_version = VERSION_STRING.as_str())]

/// The CLI arguments for the stacks signer
#[derive(Parser, Debug)]
#[command(author, version, about, long_version = VERSION_STRING.as_str())]
pub struct Cli {
/// Subcommand action to take
#[command(subcommand)]
Expand Down

0 comments on commit 906c012

Please sign in to comment.