diff --git a/crates/project-model/src/manifest_path.rs b/crates/project-model/src/manifest_path.rs index 890b1d058f5..490e1a4ea88 100644 --- a/crates/project-model/src/manifest_path.rs +++ b/crates/project-model/src/manifest_path.rs @@ -36,7 +36,7 @@ pub fn parent(&self) -> &AbsPath { } pub fn canonicalize(&self) -> ! { - self.canonicalize() + (&**self).canonicalize() } } diff --git a/lib/la-arena/src/map.rs b/lib/la-arena/src/map.rs index 741ae5bfc5c..750f345b539 100644 --- a/lib/la-arena/src/map.rs +++ b/lib/la-arena/src/map.rs @@ -253,7 +253,7 @@ impl<'a, IDX, V> Entry<'a, IDX, V> /// 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) } }