about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crates/project-model/src/manifest_path.rs2
-rw-r--r--lib/la-arena/src/map.rs2
2 files changed, 2 insertions, 2 deletions
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 @@ 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 741ae5bfc5c..750f345b539 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)
     }
 }