1 2 3 4 5 6 7 8 9 10 11
//! Tiny shared helpers. /// Lowercase hex of a byte slice. pub(crate) fn hex(bytes: &[u8]) -> String { use std::fmt::Write; let mut s = String::with_capacity(bytes.len() * 2); for b in bytes { let _ = write!(s, "{b:02x}"); } s }