Skip to content

Commit

Permalink
Reorder functions in impl Repo for MutableRepo to match trait
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
emesterhazy committed Mar 1, 2024
1 parent 5c252bd commit 96b1a7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 96b1a7d

Please sign in to comment.