diff --git a/crates/project-model/src/manifest_path.rs b/crates/project-model/src/manifest_path.rs index 890b1d058f..490e1a4ea8 100644 --- a/crates/project-model/src/manifest_path.rs +++ b/crates/project-model/src/manifest_path.rs @@ -36,7 +36,7 @@ impl ManifestPath { } 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 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) } }