diff --git a/lib/src/repo.rs b/lib/src/repo.rs index be6b25e78..5f1ac0dc8 100644 --- a/lib/src/repo.rs +++ b/lib/src/repo.rs @@ -46,8 +46,6 @@ use crate::view::{RefName, View}; use crate::{backend, op_store}; pub trait Repo { - fn base_repo(&self) -> &Arc; - fn store(&self) -> &Arc; fn op_store(&self) -> &Arc; @@ -262,10 +260,6 @@ impl ReadonlyRepo { } impl Repo for Arc { - fn base_repo(&self) -> &Arc { - self - } - fn store(&self) -> &Arc { &self.store } @@ -648,6 +642,10 @@ impl MutableRepo { } } + pub fn base_repo(&self) -> &Arc { + &self.base_repo + } + fn view_mut(&mut self) -> &mut View { self.view.get_mut() } @@ -1134,10 +1132,6 @@ impl MutableRepo { } impl Repo for MutableRepo { - fn base_repo(&self) -> &Arc { - &self.base_repo - } - fn store(&self) -> &Arc { self.base_repo.store() }