Skip to content

Commit 3432d80

Browse files
committed
diskio: drop unnecessary constructor wrapper
1 parent 6b8fa9a commit 3432d80

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

src/diskio/immediate.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ pub(super) struct ImmediateUnpacker {
2727
}
2828

2929
impl ImmediateUnpacker {
30-
pub(super) fn new() -> Self {
31-
Self {
32-
..Default::default()
33-
}
34-
}
35-
3630
fn deque(&self) -> Box<dyn Iterator<Item = CompletedIo>> {
3731
let mut guard = self.incremental_state.lock().unwrap();
3832
// incremental file in progress

src/diskio/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ pub(super) fn get_executor<'a>(
459459
// If this gets lots of use, consider exposing via the config file.
460460
let threads = effective_thread_count(ram_budget, thread_count);
461461
match threads {
462-
0 | 1 => Box::new(immediate::ImmediateUnpacker::new()),
462+
0 | 1 => Box::new(immediate::ImmediateUnpacker::default()),
463463
n => Box::new(threaded::Threaded::new(n, ram_budget)),
464464
}
465465
}

0 commit comments

Comments
 (0)