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 @@ pub fn parent(&self) -> &AbsPath {
}
pub fn canonicalize(&self) -> ! {
self.canonicalize()
(&**self).canonicalize()
}
}

View File

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