aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/src
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-05-02 11:42:48 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2025-05-06 16:02:04 +0200
commit465a4b80e2afd93f2eb4c9f55233788ebfb47ac0 (patch)
tree5ef8e309c228f73bb045b7ed2ec5f4f031566642 /rust/qemu-api/src
parent51209c2aed343a45f79b522706c807abbdcf01a3 (diff)
downloadqemu-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/qemu-api/src')
0 files changed, 0 insertions, 0 deletions