Deny warnings for doc tests (#391)

This commit is contained in:
Taiki Endo
2020-05-24 06:30:50 +09:00
committed by GitHub
parent 08ec01d1e7
commit e9877e7a3d
6 changed files with 15 additions and 10 deletions
+3 -2
View File
@@ -9,7 +9,7 @@ use crate::Buf;
/// Basic usage:
///
/// ```
/// use bytes::{Buf, Bytes};
/// use bytes::Bytes;
///
/// let buf = Bytes::from(&b"abc"[..]);
/// let mut iter = buf.into_iter();
@@ -33,7 +33,7 @@ impl<T> IntoIter<T> {
/// # Examples
///
/// ```
/// use bytes::{Buf, Bytes};
/// use bytes::Bytes;
/// use bytes::buf::IntoIter;
///
/// let buf = Bytes::from_static(b"abc");
@@ -47,6 +47,7 @@ impl<T> IntoIter<T> {
pub fn new(inner: T) -> IntoIter<T> {
IntoIter { inner }
}
/// Consumes this `IntoIter`, returning the underlying value.
///
/// # Examples