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/hw | |
parent | 51209c2aed343a45f79b522706c807abbdcf01a3 (diff) | |
download | qemu-465a4b80e2afd93f2eb4c9f55233788ebfb47ac0.zip qemu-465a4b80e2afd93f2eb4c9f55233788ebfb47ac0.tar.gz qemu-465a4b80e2afd93f2eb4c9f55233788ebfb47ac0.tar.bz2 |
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/hw')
0 files changed, 0 insertions, 0 deletions