diff options
author | 2017-03-21 07:09:44 +0300 | |
---|---|---|
committer | 2017-03-20 21:09:44 -0700 | |
commit | 613d4bd5d56d086ae0fc80746aa111c1ae6b7d2c (patch) | |
tree | 9fb246dccb008b3411c272d6b33677cc4c22a52e /src/lib.rs | |
parent | dc9c8e304e60b6038e0df4bfd7abfdc145251310 (diff) | |
download | bytes-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.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -89,6 +89,7 @@ pub use buf::{ }; mod bytes; +mod debug; pub use bytes::{Bytes, BytesMut}; pub use byteorder::{ByteOrder, BigEndian, LittleEndian}; |