Skip to content

Commit 3d69bc1

Browse files
authored
Merge pull request #155 from antonok-edm/fix-ci
Fix `clippy::needless_as_bytes` lint failure
2 parents a0a89ba + 624ccda commit 3d69bc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/postprocess.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn size(bytes: &[u8]) -> Cow<[u8]> {
3838
Some((needle, addr)) if line.starts_with('.') => {
3939
let pos = line.rfind(needle).unwrap();
4040
let hex_addr = format!("{addr:#x}");
41-
let start = pos + needle.as_bytes().len() - hex_addr.as_bytes().len();
41+
let start = pos + needle.len() - hex_addr.len();
4242

4343
format!("{}{}", &line[..start], hex_addr).into()
4444
}

0 commit comments

Comments
 (0)