Skip to content

Commit a6f75db

Browse files
authored
Merge pull request #1511 from dtolnay/printblobid
Resolve uninlined_format_args clippy lint in demo
2 parents bc273b9 + 13f93f7 commit a6f75db

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

book/src/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ fn main() {
426426
let chunks = vec![b"fearless".to_vec(), b"concurrency".to_vec()];
427427
let mut buf = MultiBuf { chunks, pos: 0 };
428428
let blobid = client.put(&mut buf);
429-
println!("blobid = {}", blobid);
429+
println!("blobid = {blobid}");
430430
}
431431
```
432432

@@ -552,7 +552,7 @@ fn main() {
552552
let chunks = vec![b"fearless".to_vec(), b"concurrency".to_vec()];
553553
let mut buf = MultiBuf { chunks, pos: 0 };
554554
let blobid = client.put(&mut buf);
555-
println!("blobid = {}", blobid);
555+
println!("blobid = {blobid}");
556556
557557
// Add a tag.
558558
client.tag(blobid, "rust");

demo/src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(clippy::uninlined_format_args)]
2-
31
#[cxx::bridge(namespace = "org::blobstore")]
42
mod ffi {
53
// Shared structs with fields visible to both languages.
@@ -50,7 +48,7 @@ fn main() {
5048
let chunks = vec![b"fearless".to_vec(), b"concurrency".to_vec()];
5149
let mut buf = MultiBuf { chunks, pos: 0 };
5250
let blobid = client.put(&mut buf);
53-
println!("blobid = {}", blobid);
51+
println!("blobid = {blobid}");
5452

5553
// Add a tag.
5654
client.tag(blobid, "rust");

0 commit comments

Comments
 (0)