1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-16 06:10:26 +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

@ -22,8 +22,8 @@ enum PlayerMove {
}
fn main() {
let m: PlayerMove = PlayerMove::Run(Direction::Left);
println!("On this turn: {:?}", m);
let player_move: PlayerMove = PlayerMove::Run(Direction::Left);
println!("On this turn: {player_move:?}");
}
```