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 d4ae71d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
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 d4ae71d

Please sign in to comment.