comparison .editorconfig @ 43832:1bb4e9b02984

rust-matchers: improve `Matcher` trait ergonomics `VisitChildrenSet` has no need to own the set, this will save allocations. The `file_set` return type change is motivated by both ergonomics and... being able to compile code. The `AlwaysMatcher` does not store a `file_set`, which requires it to return an owned `HashSet`, which in turn would change our return type to `Cow<&HgPath>` (lifetimes omitted). This is both un-ergonomic and troublesome for more complex lifetime issues (especially with the upcoming `FileMatcher` in the following patch). Differential Revision: https://phab.mercurial-scm.org/D7525
author Raphaël Gomès <rgomes@octobus.net>
date Fri, 29 Nov 2019 18:33:56 +0100
parents 1d6066336d7b
children c25efc468a49
comparison
equal deleted inserted replaced
43831:088ba9d94079 43832:1bb4e9b02984