mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
da65b9064f
refactor: standardize duplicate processes in parser ## Summary This PR refactors the `read_number` function to standardize duplicate code, improve readability, and enhance efficiency. ## Changes - Merged the logic for both `max_digits` cases into a single `read_atomically` closure - Simplified control flow and reduced code duplication |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |