diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-01 03:58:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-01 03:58:03 +0200 |
| commit | da65b9064f624e559987e4e64d678a0a309e8939 (patch) | |
| tree | dd303825835b6d27648a73185b33054644021dc1 /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | a0730044842ec430fd8209cc6ec6485bab3b56cd (diff) | |
| parent | 341511ad4e0405f606d434265b00120f782914d0 (diff) | |
| download | rust-da65b9064f624e559987e4e64d678a0a309e8939.tar.gz rust-da65b9064f624e559987e4e64d678a0a309e8939.zip | |
Rollup merge of #128641 - Konippi:standardize-duplicate-processes-in-parser, r=scottmcm
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
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
