Add hex pretty print to 'to html' (#2216)

This commit is contained in:
Jonathan Turner 2020-07-19 10:12:17 +12:00 committed by GitHub
parent ebc2d40875
commit 0c43a4d04b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,7 +207,11 @@ async fn to_html(
_ => {} _ => {}
} }
} }
_ => {} _ => {
let output = pretty_hex::pretty_hex(&b);
output_string.push_str(&output);
}
} }
} }
UntaggedValue::Primitive(Primitive::String(ref b)) => { UntaggedValue::Primitive(Primitive::String(ref b)) => {