Mercurial > hg
diff rust/hg-core/src/dirstate/status.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 | 623c8e4ddc6d |
children | be579775c2d9 |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate/status.rs Tue Apr 06 15:49:01 2021 +0200 +++ b/rust/hg-core/src/dirstate/status.rs Fri Apr 16 12:12:04 2021 +0200 @@ -97,7 +97,8 @@ /// `Box<dyn Trait>` is syntactic sugar for `Box<dyn Trait, 'static>`, so add /// an explicit lifetime here to not fight `'static` bounds "out of nowhere". -type IgnoreFnType<'a> = Box<dyn for<'r> Fn(&'r HgPath) -> bool + Sync + 'a>; +pub type IgnoreFnType<'a> = + Box<dyn for<'r> Fn(&'r HgPath) -> bool + Sync + 'a>; /// We have a good mix of owned (from directory traversal) and borrowed (from /// the dirstate/explicit) paths, this comes up a lot.