Skip to content

Commit

Permalink
fix etable write
Browse files Browse the repository at this point in the history
  • Loading branch information
junyu0312 committed Apr 30, 2024
1 parent 5eb1656 commit 3073994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/specs/src/etable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl EventTable {

pub fn write(&self, path: &PathBuf) -> std::io::Result<()> {
let mut fd = std::fs::File::create(path)?;
fd.write(&bincode::serialize(self).unwrap())?;
fd.write_all(&bincode::serialize(self).unwrap())?;
Ok(())
}

Expand Down

0 comments on commit 3073994

Please sign in to comment.