diff -r 8c29af0f6d6e -r 001d747c2baf rust/hg-core/src/repo.rs --- a/rust/hg-core/src/repo.rs Mon Sep 13 17:23:42 2021 +0200 +++ b/rust/hg-core/src/repo.rs Mon Sep 13 18:02:45 2021 +0200 @@ -29,8 +29,8 @@ // None means not known/initialized yet dirstate_parents: Cell>, dirstate_map: LazyCell, - changelog: LazyCell, - manifestlog: LazyCell, + changelog: LazyCell, + manifestlog: LazyCell, } #[derive(Debug, derive_more::From)] @@ -320,19 +320,19 @@ self.dirstate_map.get_mut_or_init(self) } - pub fn changelog(&self) -> Result, RevlogError> { + pub fn changelog(&self) -> Result, HgError> { self.changelog.get_or_init(self) } - pub fn changelog_mut(&self) -> Result, RevlogError> { + pub fn changelog_mut(&self) -> Result, HgError> { self.changelog.get_mut_or_init(self) } - pub fn manifestlog(&self) -> Result, RevlogError> { + pub fn manifestlog(&self) -> Result, HgError> { self.manifestlog.get_or_init(self) } - pub fn manifestlog_mut(&self) -> Result, RevlogError> { + pub fn manifestlog_mut(&self) -> Result, HgError> { self.manifestlog.get_mut_or_init(self) } @@ -349,7 +349,7 @@ manifest.get_node(manifest_node.into()) } - pub fn filelog(&self, path: &HgPath) -> Result { + pub fn filelog(&self, path: &HgPath) -> Result { Filelog::open(self, path) } }