Skip to content

Use `format!` instead of numtoa and concat

Gary Guo requested to merge nbdd0121/termion:master into master

The use of numtoa is not necessary; it adds an extra dependency and extra binary size.

  • [..., numtoa, ...].concat() is replaced with a format! -- allocation is necessary for concat anyway
  • From<...> for String is replaced with the to_string() method to reuse the existing Display impl

Merge request reports