Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Fix clippy::default_constructed_unit_structs Error
Browse files Browse the repository at this point in the history
This error was introduced in Rust 1.71.0

Signed-off-by: Andrea Gunderson <agunde@bitwise.io>
  • Loading branch information
agunde406 committed Jul 21, 2023
1 parent fd2f39c commit 6d7b844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsawtooth/src/families/smallbank/workload/playlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ impl<'a> FmtWriter<'a> {
impl<'a> fmt::Write for FmtWriter<'a> {
fn write_str(&mut self, s: &str) -> Result<(), fmt::Error> {
let w = &mut *self.writer;
w.write_all(s.as_bytes()).map_err(|_| fmt::Error::default())
w.write_all(s.as_bytes()).map_err(|_| fmt::Error)
}
}

Expand Down

0 comments on commit 6d7b844

Please sign in to comment.