Skip to content

Commit

Permalink
make IntoIter constructor public (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
matko authored Nov 25, 2022
1 parent 9b22722 commit 050d65b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/buf/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ use crate::Buf;

/// Iterator over the bytes contained by the buffer.
///
/// This struct is created by the [`iter`] method on [`Buf`].
///
/// # Examples
///
/// Basic usage:
Expand Down Expand Up @@ -43,7 +41,7 @@ impl<T> IntoIter<T> {
/// assert_eq!(iter.next(), Some(b'c'));
/// assert_eq!(iter.next(), None);
/// ```
pub(crate) fn new(inner: T) -> IntoIter<T> {
pub fn new(inner: T) -> IntoIter<T> {
IntoIter { inner }
}

Expand Down

0 comments on commit 050d65b

Please sign in to comment.