1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-17 22:57:35 +02:00

Inline variables printed with println! and friends (#315)

The course follows the style of inlining variable names where possible
in `println!` statements.
This commit is contained in:
Martin Geisler
2023-02-09 07:48:18 +01:00
committed by GitHub
parent ce19841249
commit c4bc10e31d
5 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ pub trait Widget {
fn draw(&self) {
let mut buffer = String::new();
self.draw_into(&mut buffer);
println!("{}", &buffer);
println!("{buffer}");
}
}