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