Skip to content
Snippets Groups Projects
Commit d70f575a authored by Carl Lerche's avatar Carl Lerche
Browse files

Provide Debug impls for all types

parent 933b8b26
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ use iovec::IoVec;
/// [`Buf::chain`]: trait.Buf.html#method.chain
/// [`Buf`]: trait.Buf.html
/// [`BufMut`]: trait.BufMut.html
#[derive(Debug)]
pub struct Chain<T, U> {
a: T,
b: U,
......
......@@ -22,6 +22,7 @@ use Buf;
///
/// [`iter`]: trait.Buf.html#method.iter
/// [`Buf`]: trait.Buf.html
#[derive(Debug)]
pub struct Iter<T> {
inner: T,
}
......
......@@ -7,6 +7,7 @@ use std::{cmp, io};
/// This struct is generally created by calling `reader()` on `Buf`. See
/// documentation of [`reader()`](trait.Buf.html#method.reader) for more
/// details.
#[derive(Debug)]
pub struct Reader<B> {
buf: B,
}
......
......@@ -6,6 +6,7 @@ use std::cmp;
///
/// This struct is generally created by calling `take()` on `Buf`. See
/// documentation of [`take()`](trait.Buf.html#method.take) for more details.
#[derive(Debug)]
pub struct Take<T> {
inner: T,
limit: usize,
......
......@@ -7,6 +7,7 @@ use std::{cmp, io};
/// This struct is generally created by calling `writer()` on `BufMut`. See
/// documentation of [`writer()`](trait.BufMut.html#method.writer) for more
/// details.
#[derive(Debug)]
pub struct Writer<B> {
buf: B,
}
......
......@@ -68,7 +68,7 @@
//! perform a syscall, which has the potential of failing. Operations on `Buf`
//! and `BufMut` are infallible.
#![deny(warnings, missing_docs)]
#![deny(warnings, missing_docs, missing_debug_implementations)]
#![doc(html_root_url = "https://docs.rs/bytes/0.4")]
extern crate byteorder;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment