Skip to content

Commit bb08906

Browse files
committed
Fix clippy and build errors
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 443ae92 commit bb08906

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

stacks-signer/src/v0/signer.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ use blockstack_lib::net::api::postblock_proposal::{
2626
};
2727
use blockstack_lib::util_lib::db::Error as DBError;
2828
use clarity::types::chainstate::StacksPrivateKey;
29-
#[cfg(any(test, feature = "testing"))]
30-
use clarity::types::chainstate::StacksPublicKey;
3129
use clarity::types::{PrivateKey, StacksEpochId};
3230
use clarity::util::hash::{MerkleHashFunc, Sha512Trunc256Sum};
3331
use clarity::util::secp256k1::Secp256k1PublicKey;
@@ -40,7 +38,7 @@ use libsigner::v0::messages::{
4038
RejectReason, RejectReasonPrefix, SignerMessage,
4139
};
4240
use libsigner::{BlockProposal, SignerEvent};
43-
use stacks_common::types::chainstate::StacksAddress;
41+
use stacks_common::types::chainstate::{StacksAddress, StacksPublicKey};
4442
use stacks_common::util::get_epoch_time_secs;
4543
use stacks_common::util::secp256k1::MessageSignature;
4644
use stacks_common::{debug, error, info, warn};

stacks-signer/src/v0/signer_state.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ impl LocalStateMachine {
570570
..
571571
} = &update.content;
572572

573-
let weight = signer_weights.get(&signer_address).unwrap_or(&0);
573+
let weight = signer_weights.get(signer_address).unwrap_or(&0);
574574
let miners = current_miners.entry(burn_block).or_default();
575575
*miners.entry(current_miner).or_default() += weight;
576576

@@ -668,7 +668,6 @@ impl LocalStateMachine {
668668
},
669669
active_signer_protocol_version: *active_signer_protocol_version,
670670
});
671-
return;
672671
}
673672
}
674673
}

0 commit comments

Comments
 (0)