This commit is contained in:
Johann Hemmann 2024-01-18 14:18:07 +01:00
parent 2185396481
commit 28c7fa8dc6
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ impl ManifestPath {
}
pub fn canonicalize(&self) -> ! {
self.canonicalize()
(&**self).canonicalize()
}
}

View file

@ -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)
}
}