Mercurial > hg
diff rust/hg-core/src/dirstate_tree/dispatch.rs @ 47112:d5956136d19d
dirstate-tree: Give to `status()` mutable access to the `DirstateMap`
Differential Revision: https://phab.mercurial-scm.org/D10546
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Fri, 16 Apr 2021 12:12:04 +0200 |
parents | 9c6b458a08e1 |
children | b6339a993b91 |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate_tree/dispatch.rs Tue Apr 06 15:49:01 2021 +0200 +++ b/rust/hg-core/src/dirstate_tree/dispatch.rs Fri Apr 16 12:12:04 2021 +0200 @@ -96,7 +96,7 @@ fn set_dirs(&mut self) -> Result<(), DirstateMapError>; fn status<'a>( - &'a self, + &'a mut self, matcher: &'a (dyn Matcher + Sync), root_dir: PathBuf, ignore_files: Vec<PathBuf>, @@ -258,7 +258,7 @@ } fn status<'a>( - &'a self, + &'a mut self, matcher: &'a (dyn Matcher + Sync), root_dir: PathBuf, ignore_files: Vec<PathBuf>,