File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ impl WaitQueue {
207
207
let mut entry_guard = entry. lock ( ) ;
208
208
let tcs = entry_guard. tcs ;
209
209
entry_guard. wake = true ;
210
- drop ( entry ) ;
210
+ drop ( entry_guard ) ;
211
211
Ok ( WaitGuard { mutex_guard : Some ( guard) , notified_tcs : NotifiedTcs :: Single ( tcs) } )
212
212
} else {
213
213
Err ( guard)
Original file line number Diff line number Diff line change @@ -1210,7 +1210,7 @@ impl File {
1210
1210
// Redox doesn't appear to support `UTIME_OMIT`.
1211
1211
// ESP-IDF and HorizonOS do not support `futimens` at all and the behavior for those OS is therefore
1212
1212
// the same as for Redox.
1213
- drop ( times) ;
1213
+ let _ = times;
1214
1214
Err ( io:: const_io_error!(
1215
1215
io:: ErrorKind :: Unsupported ,
1216
1216
"setting file times not supported" ,
Original file line number Diff line number Diff line change @@ -375,7 +375,9 @@ fn test_scoped_threads_nll() {
375
375
// this is mostly a *compilation test* for this exact function:
376
376
fn foo ( x : & u8 ) {
377
377
thread:: scope ( |s| {
378
- s. spawn ( || drop ( x) ) ;
378
+ s. spawn ( || match x {
379
+ _ => ( ) ,
380
+ } ) ;
379
381
} ) ;
380
382
}
381
383
// let's also run it for good measure
You can’t perform that action at this time.
0 commit comments