We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2e8302 commit 0286456Copy full SHA for 0286456
rs/nervous_system/string/src/lib.rs
@@ -47,7 +47,10 @@ pub fn humanize_blob(bytes: &[u8], max_bytes: usize) -> String {
47
if bytes.len() <= max_bytes {
48
bytes.iter().map(|b| format!("{b:02x}")).collect()
49
} else {
50
- let hex: String = bytes[..max_bytes].iter().map(|b| format!("{b:02x}")).collect();
+ let hex: String = bytes[..max_bytes]
51
+ .iter()
52
+ .map(|b| format!("{b:02x}"))
53
+ .collect();
54
format!("{hex}... ({} bytes total)", bytes.len())
55
}
56
0 commit comments