Skip to content

Commit

Permalink
and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed May 9, 2024
1 parent e5dbddc commit 8032a3c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion blockset-lib/src/app/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ pub fn restore(io: &impl Io, hash: &U224, w: &mut impl Write) -> io::Result<()>
FileForest(io).restore(
&ForestNodeId::new(NodeType::Root, hash),
w,
io,
|progress_b, progress_p| state.set_progress(&(mb(progress_b) + ", "), progress_p),
)
}
Expand Down
6 changes: 1 addition & 5 deletions blockset-lib/src/forest/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use std::io::{self, Write};

use io_trait::Io;

use crate::{
cdt::{node_id::root, node_type::NodeType},
common::status_line::{mb, StatusLine},
uint::{u224::U224, u32::from_u8x4},
};

Expand Down Expand Up @@ -46,7 +43,6 @@ pub trait Forest {
&self,
id: &ForestNodeId,
w: &mut impl Write,
io: &impl Io,
mut progress: impl FnMut(u64, f64) -> io::Result<()>,
) -> io::Result<()> {
if id.hash == EMPTY {
Expand Down Expand Up @@ -88,7 +84,7 @@ pub trait Forest {
progress_p += size;
progress_b += buf.len() as u64;
// state.set_progress(&(mb(progress_b) + ", "), progress_p)?;
progress(progress_b, progress_p);
progress(progress_b, progress_p)?;
}
t = NodeType::Child;
}
Expand Down
1 change: 0 additions & 1 deletion blockset-lib/src/forest/tree_add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ mod test {
.restore(
&ForestNodeId::new(NodeType::Root, &k),
&mut cursor,
&io,
|progress_b, progress_p| state.set_progress(&(mb(progress_b) + ", "), progress_p),
)
.unwrap();
Expand Down

0 comments on commit 8032a3c

Please sign in to comment.