Skip to content

Commit b42a024

Browse files
committed
Apply suggestions from clippy 1.91
1 parent abfce9f commit b42a024

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/diskio/threaded.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,14 @@ impl AsRef<[u8]> for PoolReference {
5353
}
5454
}
5555

56+
#[derive(Default)]
5657
enum Task {
5758
Request(CompletedIo),
5859
// Used to synchronise in the join method.
60+
#[default]
5961
Sentinel,
6062
}
6163

62-
impl Default for Task {
63-
fn default() -> Self {
64-
Self::Sentinel
65-
}
66-
}
67-
6864
struct Pool {
6965
pool: Arc<sharded_slab::Pool<Vec<u8>>>,
7066
high_watermark: RefCell<usize>,

0 commit comments

Comments
 (0)