Skip to content

Commit

Permalink
specilaize write_all
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanderc committed Apr 29, 2024
1 parent 6057c4e commit 4ed1f18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions heed/src/reserved_space.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ impl io::Write for ReservedSpace {
}
}

fn write_all(&mut self, buf: &[u8]) -> io::Result<()> {
let count = self.write(buf)?;
debug_assert_eq!(count, buf.len());
Ok(())
}

fn flush(&mut self) -> io::Result<()> {
Ok(())
}
Expand Down

0 comments on commit 4ed1f18

Please sign in to comment.