Unnessary allocation in `Limiter` `Display`
RedRam567 opened this issue · comments
RedRam567 commented
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.