Closed RedRam567 closed 3 weeks ago
Every branch allocates a String just to pass it to write!(). write!() supports all the normal formatting that println!() uses, so you can just use write!() in every branch. It doesn't matter too much though, as its only really used in the demo app.
write!()
println!()
Every branch allocates a String just to pass it to
write!()
.write!()
supports all the normal formatting thatprintln!()
uses, so you can just usewrite!()
in every branch. It doesn't matter too much though, as its only really used in the demo app.