diff options
| author | Johann Hemmann <johann.hemmann@code.berlin> | 2024-01-19 16:55:45 +0100 |
|---|---|---|
| committer | Johann Hemmann <johann.hemmann@code.berlin> | 2024-01-19 16:55:45 +0100 |
| commit | 4087dcf1db38b459a94b9fa4b7cc45dfef8b4dd0 (patch) | |
| tree | 86603f3b18676cf05518c36288e64ff4c178fd80 | |
| parent | 1fdf3063d065bfff48a610b9bf656267cc934b1a (diff) | |
| download | rust-4087dcf1db38b459a94b9fa4b7cc45dfef8b4dd0.tar.gz rust-4087dcf1db38b459a94b9fa4b7cc45dfef8b4dd0.zip | |
Add comment about false positive clippy lint
| -rw-r--r-- | lib/la-arena/src/map.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/la-arena/src/map.rs b/lib/la-arena/src/map.rs index 7e2c1f801d5..c6a43d8f9a6 100644 --- a/lib/la-arena/src/map.rs +++ b/lib/la-arena/src/map.rs @@ -252,6 +252,7 @@ where { /// Ensures a value is in the entry by inserting the default value if empty, and returns a mutable reference /// to the value in the entry. + // BUG this clippy lint is a false positive #[allow(clippy::unwrap_or_default)] pub fn or_default(self) -> &'a mut V { self.or_insert_with(Default::default) |
