Skip to content

Commit 0cffece

Browse files
Fix cargo check warnings and run rustfmt
1 parent de2a402 commit 0cffece

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

core/src/parking_lot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ fn create_hashtable() -> &'static HashTable {
248248
// Free the table we created
249249
// SAFETY: `new_table` is created from `Box::into_raw` above and only freed here.
250250
unsafe {
251-
Box::from_raw(new_table);
251+
let _ = Box::from_raw(new_table);
252252
}
253253
old_table
254254
}

core/src/thread_parker/windows/waitaddress.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use core::{
1010
sync::atomic::{AtomicUsize, Ordering},
1111
};
1212
use std::{ffi, time::Instant};
13+
1314
use super::bindings::*;
1415

1516
#[allow(non_snake_case)]

0 commit comments

Comments
 (0)