Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/la-arena/src/map.rs')
| -rw-r--r-- | lib/la-arena/src/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/la-arena/src/map.rs b/lib/la-arena/src/map.rs index 741ae5bfc5..750f345b53 100644 --- a/lib/la-arena/src/map.rs +++ b/lib/la-arena/src/map.rs @@ -253,7 +253,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. pub fn or_default(self) -> &'a mut V { - self.or_default() + self.or_insert_with(Default::default) } } |