diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-02 11:42:48 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-06 16:02:04 +0200 |
| commit | 465a4b80e2afd93f2eb4c9f55233788ebfb47ac0 (patch) | |
| tree | 5ef8e309c228f73bb045b7ed2ec5f4f031566642 /rust/qemu-api/src/timer.rs | |
| parent | 51209c2aed343a45f79b522706c807abbdcf01a3 (diff) | |
| download | focaccia-qemu-465a4b80e2afd93f2eb4c9f55233788ebfb47ac0.tar.gz focaccia-qemu-465a4b80e2afd93f2eb4c9f55233788ebfb47ac0.zip | |
rust: qemu_api_macros: make pattern matching more readable and efficient
"let ... else" is useful when visiting syntax trees; it avoids multiple levels of indentation and places the error close to the pattern. While at it, use "ref" to avoid moving the syntax tree objects. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/src/timer.rs')
0 files changed, 0 insertions, 0 deletions