Skip to content

Commit 76db134

Browse files
committed
Allow clippy::needless_pass_by_value
1 parent e4935b8 commit 76db134

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/raw/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ impl<T> RawTable<T> {
513513

514514
/// Erases an element from the table, dropping it in place.
515515
#[cfg_attr(feature = "inline-more", inline)]
516+
#[allow(clippy::needless_pass_by_value)]
516517
pub unsafe fn erase(&mut self, item: Bucket<T>) {
517518
// Erase the element from the table first since drop might panic.
518519
self.erase_no_drop(&item);
@@ -521,6 +522,7 @@ impl<T> RawTable<T> {
521522

522523
/// Removes an element from the table, returning it.
523524
#[cfg_attr(feature = "inline-more", inline)]
525+
#[allow(clippy::needless_pass_by_value)]
524526
pub unsafe fn remove(&mut self, item: Bucket<T>) -> T {
525527
self.erase_no_drop(&item);
526528
item.read()

0 commit comments

Comments
 (0)