merge hex & debug into fmt (#357)

This commit is contained in:
南浦月
2020-01-23 10:08:40 -08:00
committed by Sean McArthur
parent f9ebf74091
commit 3853a1fac4
7 changed files with 61 additions and 62 deletions
-7
View File
@@ -6,7 +6,6 @@ use alloc::{vec::Vec, string::String, boxed::Box, borrow::Borrow};
use crate::Buf;
use crate::buf::IntoIter;
use crate::debug;
use crate::loom::sync::atomic::{self, AtomicPtr, AtomicUsize, Ordering};
/// A reference counted contiguous slice of memory.
@@ -496,12 +495,6 @@ impl Clone for Bytes {
}
}
impl fmt::Debug for Bytes {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Debug::fmt(&debug::BsDebug(&self.as_slice()), f)
}
}
impl Buf for Bytes {
#[inline]
fn remaining(&self) -> usize {