1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-07-14 18:14:29 +02:00

Consistently inline formatting arguments (#2413)

This commit is contained in:
Martin Geisler
2024-10-21 14:01:21 -04:00
committed by GitHub
parent ce56ea551e
commit 8bfff0d95a
9 changed files with 12 additions and 12 deletions

View File

@ -20,7 +20,7 @@ fn main() {
let mut p2 = p1.clone(); // Clone trait adds `clone` method.
p2.name = String::from("EldurScrollz");
// Debug trait adds support for printing with `{:?}`.
println!("{:?} vs. {:?}", p1, p2);
println!("{p1:?} vs. {p2:?}");
}
```