Skip to content

Commit 37c54d1

Browse files
TakeWhileInclusive::new should not have been public
1 parent 6de2f5c commit 37c54d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/take_while_inclusive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ where
2121
F: FnMut(&I::Item) -> bool,
2222
{
2323
/// Create a new [`TakeWhileInclusive`] from an iterator and a predicate.
24-
pub fn new(iter: I, predicate: F) -> Self {
24+
pub(crate) fn new(iter: I, predicate: F) -> Self {
2525
Self {
2626
iter,
2727
predicate,

0 commit comments

Comments
 (0)