Reorder functions in impl Repo for MutableRepo to match trait

This is just a clean-up to silence a lint that complains that the functions are
defined in a different order than they are in the trait.
This commit is contained in:
Evan Mesterhazy 2024-03-01 17:57:26 -05:00 committed by Evan Mesterhazy
parent f76830ab12
commit 276276ea01

View file

@ -1370,15 +1370,15 @@ impl Repo for MutableRepo {
self.index.as_index() self.index.as_index()
} }
fn submodule_store(&self) -> &Arc<dyn SubmoduleStore> {
self.base_repo.submodule_store()
}
fn view(&self) -> &View { fn view(&self) -> &View {
self.view self.view
.get_or_ensure_clean(|v| self.enforce_view_invariants(v)) .get_or_ensure_clean(|v| self.enforce_view_invariants(v))
} }
fn submodule_store(&self) -> &Arc<dyn SubmoduleStore> {
self.base_repo.submodule_store()
}
fn resolve_change_id_prefix(&self, prefix: &HexPrefix) -> PrefixResolution<Vec<CommitId>> { fn resolve_change_id_prefix(&self, prefix: &HexPrefix) -> PrefixResolution<Vec<CommitId>> {
let change_id_index = self.index.change_id_index(&mut self.view().heads().iter()); let change_id_index = self.index.change_id_index(&mut self.view().heads().iter());
change_id_index.resolve_prefix(prefix) change_id_index.resolve_prefix(prefix)