Skip to content

Commit 1746336

Browse files
committed
fix: clippy derive(Default) lint
1 parent ca57b77 commit 1746336

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/stability/shutdown.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,14 @@ impl ShutdownReason {
6363
}
6464

6565
/// Tracks shutdown experiences
66+
#[derive(Default)]
6667
pub struct ShutdownTracker {
6768
/// Last shutdown reason (if any)
6869
pub last_reason: Option<ShutdownReason>,
6970
/// Timestamp of last shutdown
7071
pub last_timestamp: Option<u64>,
7172
}
7273

73-
impl Default for ShutdownTracker {
74-
fn default() -> Self {
75-
Self {
76-
last_reason: None,
77-
last_timestamp: None,
78-
}
79-
}
80-
}
81-
8274
impl ShutdownTracker {
8375
/// Record a shutdown event
8476
pub fn record(&mut self, reason: ShutdownReason, timestamp: u64) {

0 commit comments

Comments
 (0)