Skip to content

Commit 23651dd

Browse files
authored
blobby: fix clippy::uninlined_format_args (#1183)
1 parent 716d766 commit 23651dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

blobby/src/bin/decode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ fn decode<R: BufRead, W: Write>(mut reader: R, mut writer: W) -> io::Result<usiz
1818
.map_err(|e| {
1919
io::Error::new(
2020
io::ErrorKind::InvalidData,
21-
format!("invalid blobby data: {:?}", e),
21+
format!("invalid blobby data: {e:?}"),
2222
)
2323
})?
2424
.collect::<Vec<_>>();
2525
for blob in res.iter() {
2626
let blob = blob.map_err(|e| {
2727
io::Error::new(
2828
io::ErrorKind::InvalidData,
29-
format!("invalid blobby data: {:?}", e),
29+
format!("invalid blobby data: {e:?}"),
3030
)
3131
})?;
3232
writer.write_all(encode_hex(blob).as_bytes())?;

blobby/src/bin/encode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn encode(reader: impl BufRead, mut writer: impl Write) -> io::Result<usize> {
3838
blobs.push(blob);
3939
}
4040
let (data, idx_len) = encode_blobs(&blobs);
41-
println!("Index len: {:?}", idx_len);
41+
println!("Index len: {idx_len:?}");
4242
writer.write_all(&data)?;
4343
Ok(blobs.len())
4444
}

0 commit comments

Comments
 (0)