Address Clippy complaints.
This commit is contained in:
parent
900d8e8381
commit
977a310e93
|
@ -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;
|
||||
|
|
|
@ -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(())
|
||||
})?;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue