clap/clap_lex/tests
Alex Crichton 9a9aabc178 refactor: Reduce code size of testing tokens if they're a number
This commit is a tiny win in compiled code size of a final binary
including `clap` which shaves off 19k of compiled code locally.
Previously tokens were checked if they were a number by using
`.parse::<f64>().is_ok()`, but parsing floats is relatively heavyweight
in terms of code size. This replaces the check with a more naive "does
this string have lots of ascii digits" check where the compiled size of
this check should be much smaller.
2023-10-24 09:17:45 -07:00
..
lexer.rs style: Make clippy happy 2022-11-24 08:05:21 -06:00
parsed.rs refactor: Reduce code size of testing tokens if they're a number 2023-10-24 09:17:45 -07:00
shorts.rs refactor: Reduce code size of testing tokens if they're a number 2023-10-24 09:17:45 -07:00