Skip to content

Commit 0286456

Browse files
author
IDX GitHub Automation
committed
Automatically fixing code for linting and formatting issues
1 parent b2e8302 commit 0286456

File tree

1 file changed

+4
-1
lines changed
  • rs/nervous_system/string/src

1 file changed

+4
-1
lines changed

rs/nervous_system/string/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ pub fn humanize_blob(bytes: &[u8], max_bytes: usize) -> String {
4747
if bytes.len() <= max_bytes {
4848
bytes.iter().map(|b| format!("{b:02x}")).collect()
4949
} else {
50-
let hex: String = bytes[..max_bytes].iter().map(|b| format!("{b:02x}")).collect();
50+
let hex: String = bytes[..max_bytes]
51+
.iter()
52+
.map(|b| format!("{b:02x}"))
53+
.collect();
5154
format!("{hex}... ({} bytes total)", bytes.len())
5255
}
5356
}

0 commit comments

Comments
 (0)