Skip to content

Commit

Permalink
Use Write::write_all instead of Write::write
Browse files Browse the repository at this point in the history
Make clippy happy.
  • Loading branch information
TheVeryDarkness committed Aug 30, 2024
1 parent d21d6a6 commit a9580b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ill_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ struct IllData(&'static [u8]);

impl WriteInto for IllData {
fn try_write_into<S: Write>(&self, s: &mut S) -> Result<()> {
s.write(self.0)?;
s.write_all(self.0)?;
Ok(())
}
}
Expand Down

0 comments on commit a9580b6

Please sign in to comment.