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

Commit 5659d5f

Browse files
committed
Fix use of default to create a unit struct compiler error
Signed-off-by: Joseph Livesey <jlivesey@gmail.com>
1 parent 6b45431 commit 5659d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perf/smallbank_workload/src/playlist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ impl<'a> FmtWriter<'a> {
613613
impl<'a> fmt::Write for FmtWriter<'a> {
614614
fn write_str(&mut self, s: &str) -> Result<(), fmt::Error> {
615615
let w = &mut *self.writer;
616-
w.write_all(s.as_bytes()).map_err(|_| fmt::Error::default())
616+
w.write_all(s.as_bytes()).map_err(|_| fmt::Error)
617617
}
618618
}
619619

0 commit comments

Comments
 (0)