about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohann Hemmann <johann.hemmann@code.berlin>2024-01-18 14:18:07 +0100
committerJohann Hemmann <johann.hemmann@code.berlin>2024-01-18 14:18:07 +0100
commit28c7fa8dc6ceeac9521619871b07bbab423bbfb3 (patch)
treedcb24445a28a0d884318a554105ce932cf3b7c00
parent21853964817503e740dac832bf2fd270379e6025 (diff)
downloadrust-28c7fa8dc6ceeac9521619871b07bbab423bbfb3.tar.gz
rust-28c7fa8dc6ceeac9521619871b07bbab423bbfb3.zip
Fix CI 2
-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)
     }
 }