Skip to content

Commit 4087dcf

Browse files
committed
Add comment about false positive clippy lint
1 parent 1fdf306 commit 4087dcf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/la-arena/src/map.rs

+1
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ where
252252
{
253253
/// Ensures a value is in the entry by inserting the default value if empty, and returns a mutable reference
254254
/// to the value in the entry.
255+
// BUG this clippy lint is a false positive
255256
#[allow(clippy::unwrap_or_default)]
256257
pub fn or_default(self) -> &'a mut V {
257258
self.or_insert_with(Default::default)

0 commit comments

Comments
 (0)