Skip to content

Commit 91aaea5

Browse files
committed
chore: fix new clippy errors from 1.85
1 parent 843562f commit 91aaea5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

clarity/src/vm/contexts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ impl<'a, 'hooks> GlobalContext<'a, 'hooks> {
16391639
);
16401640
f(&mut exec_env)
16411641
};
1642-
self.roll_back().map_err(crate::vm::errors::Error::from)?;
1642+
self.roll_back()?;
16431643

16441644
match result {
16451645
Ok(return_value) => Ok(return_value),

stacks-common/src/deps_common/bech32/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl<'a> Bech32Writer<'a> {
168168

169169
fn polymod_step(&mut self, v: u5) {
170170
let b = (self.chk >> 25) as u8;
171-
self.chk = (self.chk & 0x01ff_ffff) << 5 ^ (u32::from(*v.as_ref()));
171+
self.chk = ((self.chk & 0x01ff_ffff) << 5) ^ (u32::from(*v.as_ref()));
172172

173173
for (i, item) in GEN.iter().enumerate() {
174174
if (b >> i) & 1 == 1 {
@@ -616,7 +616,7 @@ fn polymod(values: &[u5]) -> u32 {
616616
let mut b: u8;
617617
for v in values {
618618
b = (chk >> 25) as u8;
619-
chk = (chk & 0x01ff_ffff) << 5 ^ (u32::from(*v.as_ref()));
619+
chk = ((chk & 0x01ff_ffff) << 5) ^ (u32::from(*v.as_ref()));
620620

621621
for (i, item) in GEN.iter().enumerate() {
622622
if (b >> i) & 1 == 1 {

stacks-common/src/util/uint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ mod tests {
733733
#[test]
734734
pub fn hex_codec() {
735735
let init =
736-
Uint256::from_u64(0xDEADBEEFDEADBEEF) << 64 | Uint256::from_u64(0x0102030405060708);
736+
(Uint256::from_u64(0xDEADBEEFDEADBEEF) << 64) | Uint256::from_u64(0x0102030405060708);
737737

738738
// little-endian representation
739739
let hex_init = "0807060504030201efbeaddeefbeadde00000000000000000000000000000000";

stacks-signer/src/chainstate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ impl SortitionsView {
599599
"proposed_chain_length" => block.header.chain_length,
600600
"expected_at_least" => info.block.header.chain_length + 1,
601601
);
602-
if info.signed_group.map_or(true, |signed_time| {
602+
if info.signed_group.is_none_or(|signed_time| {
603603
signed_time + reorg_attempts_activity_timeout.as_secs() > get_epoch_time_secs()
604604
}) {
605605
// Note if there is no signed_group time, this is a locally accepted block (i.e. tenure_last_block_proposal_timeout has not been exceeded).

0 commit comments

Comments
 (0)