Hex-encode a byte slice (lowercase).
(bytes: &[u8])
| 332 | |
| 333 | /// Hex-encode a byte slice (lowercase). |
| 334 | fn hex_encode(bytes: &[u8]) -> String { |
| 335 | bytes.iter().map(|b| format!("{b:02x}")).collect() |
| 336 | } |
| 337 | |
| 338 | #[cfg(test)] |
| 339 | mod tests { |
no test coverage detected