Skip to content

Commit

Permalink
Fix cargo check warnings and run rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet committed May 26, 2023
1 parent de2a402 commit 0cffece
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/parking_lot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ fn create_hashtable() -> &'static HashTable {
// Free the table we created
// SAFETY: `new_table` is created from `Box::into_raw` above and only freed here.
unsafe {
Box::from_raw(new_table);
let _ = Box::from_raw(new_table);
}
old_table
}
Expand Down
1 change: 1 addition & 0 deletions core/src/thread_parker/windows/waitaddress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use core::{
sync::atomic::{AtomicUsize, Ordering},
};
use std::{ffi, time::Instant};

use super::bindings::*;

#[allow(non_snake_case)]
Expand Down

0 comments on commit 0cffece

Please sign in to comment.