mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-12 23:57:37 +00:00
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:
parent
f76830ab12
commit
276276ea01
1 changed files with 4 additions and 4 deletions
|
@ -1370,15 +1370,15 @@ impl Repo for MutableRepo {
|
|||
self.index.as_index()
|
||||
}
|
||||
|
||||
fn submodule_store(&self) -> &Arc<dyn SubmoduleStore> {
|
||||
self.base_repo.submodule_store()
|
||||
}
|
||||
|
||||
fn view(&self) -> &View {
|
||||
self.view
|
||||
.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>> {
|
||||
let change_id_index = self.index.change_id_index(&mut self.view().heads().iter());
|
||||
change_id_index.resolve_prefix(prefix)
|
||||
|
|
Loading…
Reference in a new issue