File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ enum PanicHookState {
114114}
115115
116116thread_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
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ enum TaskType {
177177 Unset ,
178178 Low ,
179179 Mid ,
180- Rest ( u64 ) ,
180+ Rest ,
181181}
182182
183183impl 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}
You can’t perform that action at this time.
0 commit comments