mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-08 21:55:47 +00:00
tree_builder: remove unneeded "mut" self
This commit is contained in:
parent
633236701d
commit
0846d7fc8b
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ impl TreeBuilder {
|
||||||
self.overrides.insert(path, Override::Tombstone);
|
self.overrides.insert(path, Override::Tombstone);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn write_tree(mut self) -> TreeId {
|
pub fn write_tree(self) -> TreeId {
|
||||||
let mut trees_to_write = self.get_base_trees();
|
let mut trees_to_write = self.get_base_trees();
|
||||||
if trees_to_write.is_empty() {
|
if trees_to_write.is_empty() {
|
||||||
return self.base_tree_id;
|
return self.base_tree_id;
|
||||||
|
@ -112,7 +112,7 @@ impl TreeBuilder {
|
||||||
unreachable!("trees_to_write must contain the root tree");
|
unreachable!("trees_to_write must contain the root tree");
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_base_trees(&mut self) -> BTreeMap<RepoPath, backend::Tree> {
|
fn get_base_trees(&self) -> BTreeMap<RepoPath, backend::Tree> {
|
||||||
let mut tree_cache = BTreeMap::new();
|
let mut tree_cache = BTreeMap::new();
|
||||||
let mut base_trees = BTreeMap::new();
|
let mut base_trees = BTreeMap::new();
|
||||||
let store = self.store.clone();
|
let store = self.store.clone();
|
||||||
|
|
Loading…
Reference in a new issue