diff options
Diffstat (limited to 'vendor/bytes/src/fmt/hex.rs')
| -rw-r--r-- | vendor/bytes/src/fmt/hex.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/vendor/bytes/src/fmt/hex.rs b/vendor/bytes/src/fmt/hex.rs deleted file mode 100644 index 1203b419..00000000 --- a/vendor/bytes/src/fmt/hex.rs +++ /dev/null @@ -1,27 +0,0 @@ -use core::fmt::{Formatter, LowerHex, Result, UpperHex}; - -use super::BytesRef; -use crate::{Bytes, BytesMut}; - -impl LowerHex for BytesRef<'_> { - fn fmt(&self, f: &mut Formatter<'_>) -> Result { - for &b in self.0 { - write!(f, "{:02x}", b)?; - } - Ok(()) - } -} - -impl UpperHex for BytesRef<'_> { - fn fmt(&self, f: &mut Formatter<'_>) -> Result { - for &b in self.0 { - write!(f, "{:02X}", b)?; - } - Ok(()) - } -} - -fmt_impl!(LowerHex, Bytes); -fmt_impl!(LowerHex, BytesMut); -fmt_impl!(UpperHex, Bytes); -fmt_impl!(UpperHex, BytesMut); |
