You've already forked comprehensive-rust
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:
@ -24,7 +24,7 @@ pub trait Widget {
|
||||
fn draw(&self) {
|
||||
let mut buffer = String::new();
|
||||
self.draw_into(&mut buffer);
|
||||
println!("{}", &buffer);
|
||||
println!("{buffer}");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user