about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-01 03:58:03 +0200
committerGitHub <noreply@github.com>2024-09-01 03:58:03 +0200
commitda65b9064f624e559987e4e64d678a0a309e8939 (patch)
treedd303825835b6d27648a73185b33054644021dc1 /compiler/rustc_codegen_gcc/example/std_example.rs
parenta0730044842ec430fd8209cc6ec6485bab3b56cd (diff)
parent341511ad4e0405f606d434265b00120f782914d0 (diff)
downloadrust-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