From e42432cc5dc32820d025e28287bba70a3751f8ca Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Mon, 22 Sep 2025 21:49:29 -0400 Subject: [PATCH] ignore: clarify `WalkBuilder::filter_entry` Fixes #2913 --- crates/ignore/src/walk.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ignore/src/walk.rs b/crates/ignore/src/walk.rs index 41cd138..4856351 100644 --- a/crates/ignore/src/walk.rs +++ b/crates/ignore/src/walk.rs @@ -898,6 +898,10 @@ impl WalkBuilder { /// /// Note that the errors for reading entries that may not satisfy the /// predicate will still be yielded. + /// + /// Note also that only one filter predicate can be applied to a + /// `WalkBuilder`. Calling this subsequent times overrides previous filter + /// predicates. pub fn filter_entry

(&mut self, filter: P) -> &mut WalkBuilder where P: Fn(&DirEntry) -> bool + Send + Sync + 'static,