We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4935b8 commit 76db134Copy full SHA for 76db134
src/raw/mod.rs
@@ -513,6 +513,7 @@ impl<T> RawTable<T> {
513
514
/// Erases an element from the table, dropping it in place.
515
#[cfg_attr(feature = "inline-more", inline)]
516
+ #[allow(clippy::needless_pass_by_value)]
517
pub unsafe fn erase(&mut self, item: Bucket<T>) {
518
// Erase the element from the table first since drop might panic.
519
self.erase_no_drop(&item);
@@ -521,6 +522,7 @@ impl<T> RawTable<T> {
521
522
523
/// Removes an element from the table, returning it.
524
525
526
pub unsafe fn remove(&mut self, item: Bucket<T>) -> T {
527
528
item.read()
0 commit comments