Skip to content

Commit

Permalink
Address Clippy complaints.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttycom committed Dec 20, 2024
1 parent 900d8e8 commit 977a310
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/commands/inspect/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ use group::GroupEncoding;
use sapling::{note_encryption::SaplingDomain, SaplingVerificationContext};
use secp256k1::{Secp256k1, VerifyOnly};

#[allow(deprecated)]
use ::transparent::keys::pubkey_to_address;
use ::transparent::{
address::{Script, TransparentAddress},
bundle as transparent,
keys::pubkey_to_address,
sighash::{SighashType, TransparentAuthorizingContext},
};
use orchard::note_encryption::OrchardDomain;
Expand Down
7 changes: 2 additions & 5 deletions src/commands/pczt/qr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,8 @@ impl<'b, C> minicbor::Decode<'b, C> for ZcashPczt {
cbor_map(d, &mut result, |key, obj, d| {
let key =
u8::try_from(key).map_err(|e| minicbor::decode::Error::message(e.to_string()))?;
match key {
DATA => {
obj.data = d.bytes()?.to_vec();
}
_ => {}
if key == DATA {
obj.data = d.bytes()?.to_vec();
}
Ok(())
})?;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/wallet/sync/defrag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl App {
// Determine the density of blocks we will be rendering. Use ceiling division
// to ensure we don't require more cells than we have (which would cause the
// blocks around the chain tip to never be rendered).
let area = u32::from(defrag_area.area());
let area = defrag_area.area();
let blocks_per_cell = (block_count + area - 1) / area;
let blocks_per_row = blocks_per_cell * u32::from(defrag_area.width);

Expand Down

0 comments on commit 977a310

Please sign in to comment.