perf: De-inline another formatting method

This commit is contained in:
Jan Verbeek 2022-01-30 11:56:48 +01:00
parent 82dd01a1df
commit 0c0d51b29a

View file

@ -139,6 +139,7 @@ impl<'help, 'app, 'parser, 'writer> Help<'help, 'app, 'parser, 'writer> {
write_method!(self, msg, none)
}
#[inline(never)]
fn spaces(&mut self, n: usize) -> io::Result<()> {
// A string with 64 consecutive spaces.
const SHORT_SPACE: &str =