Skip to content

Commit 2fdc33f

Browse files
authored
Clippies (#145)
1 parent 1e7037d commit 2fdc33f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/runtime/failure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ enum PanicHookState {
114114
}
115115

116116
thread_local! {
117-
static PANIC_HOOK: Mutex<PanicHookState> = Mutex::new(PanicHookState::Disarmed);
117+
static PANIC_HOOK: Mutex<PanicHookState> = const { Mutex::new(PanicHookState::Disarmed) };
118118
}
119119

120120
/// A guard that disarms the panic hook when dropped

tests/basic/tag.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ enum TaskType {
177177
Unset,
178178
Low,
179179
Mid,
180-
Rest(u64),
180+
Rest,
181181
}
182182

183183
impl shuttle::current::Taggable for TaskType {}
@@ -188,7 +188,7 @@ impl TaskType {
188188
0 => TaskType::Unset,
189189
x if x < 3 => TaskType::Low,
190190
x if x < 5 => TaskType::Mid,
191-
x => TaskType::Rest(x),
191+
_x => TaskType::Rest,
192192
}
193193
}
194194
}

0 commit comments

Comments
 (0)