aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorGravatar Stepan Koltsov <stepan.koltsov@gmail.com> 2017-03-21 07:09:44 +0300
committerGravatar Carl Lerche <me@carllerche.com> 2017-03-20 21:09:44 -0700
commit613d4bd5d56d086ae0fc80746aa111c1ae6b7d2c (patch)
tree9fb246dccb008b3411c272d6b33677cc4c22a52e /src/lib.rs
parentdc9c8e304e60b6038e0df4bfd7abfdc145251310 (diff)
downloadbytes-613d4bd5d56d086ae0fc80746aa111c1ae6b7d2c.tar.gz
bytes-613d4bd5d56d086ae0fc80746aa111c1ae6b7d2c.tar.zst
bytes-613d4bd5d56d086ae0fc80746aa111c1ae6b7d2c.zip
Reimplement fmt::Debug for Bytes and BytesMut (#84)
Standard `Debug` implementation for `[u8]` is comma separated list of numbers. Since large amount of byte strings are in fact ASCII strings or contain a lot of ASCII strings (e. g. HTTP), it is convenient to print strings as ASCII when possible.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index fabba8a..42c2c8c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -89,6 +89,7 @@ pub use buf::{
};
mod bytes;
+mod debug;
pub use bytes::{Bytes, BytesMut};
pub use byteorder::{ByteOrder, BigEndian, LittleEndian};