Implement Base64 read.

This commit is contained in:
2022-03-26 13:40:28 -04:00
parent 7a1c62c47e
commit b490b67d55
5 changed files with 126 additions and 19 deletions

View File

@@ -1,3 +1,4 @@
#![allow(dead_code)]
use std::fmt::Write; // need to import this trait
#[derive(PartialEq, PartialOrd, Debug)]
@@ -34,7 +35,7 @@ impl Bytes {
let Bytes(v) = self;
let mut r = String::new();
for e in v.iter() {
write!(r, "{:02x}", e);
write!(r, "{:02x}", e).unwrap();
}
r
}