Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
  • Loading branch information
MrCroxx committed Sep 19, 2024
1 parent 194f4f2 commit e32108b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foyer-storage/src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ where
fn write_all_vectored(&mut self, bufs: &mut [std::io::IoSlice<'_>]) -> std::io::Result<()> {
self.inner
.write_all_vectored(bufs)
.inspect(|_| self.written += bufs.iter().map(|slice| slice.len()).sum())
.inspect(|_| self.written += bufs.iter().map(|slice| slice.len()).sum::<usize>())
}
}

Expand Down

0 comments on commit e32108b

Please sign in to comment.