diff --git a/src/take_while_inclusive.rs b/src/take_while_inclusive.rs index 0d186d76b..420da9847 100644 --- a/src/take_while_inclusive.rs +++ b/src/take_while_inclusive.rs @@ -21,7 +21,7 @@ where F: FnMut(&I::Item) -> bool, { /// Create a new [`TakeWhileInclusive`] from an iterator and a predicate. - pub fn new(iter: I, predicate: F) -> Self { + pub(crate) fn new(iter: I, predicate: F) -> Self { Self { iter, predicate,