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

Commit 538b367

Browse files
committed
Fix redundant_allocation warnings
Signed-off-by: Joseph Livesey <joseph.livesey@btp.works>
1 parent 5db6192 commit 538b367

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

perf/smallbank_workload/src/playlist.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -602,14 +602,12 @@ impl error::Error for PlaylistError {
602602
}
603603

604604
struct FmtWriter<'a> {
605-
writer: Box<&'a mut dyn Write>,
605+
writer: &'a mut dyn Write,
606606
}
607607

608608
impl<'a> FmtWriter<'a> {
609609
pub fn new(writer: &'a mut dyn Write) -> Self {
610-
FmtWriter {
611-
writer: Box::new(writer),
612-
}
610+
FmtWriter { writer }
613611
}
614612
}
615613

0 commit comments

Comments
 (0)