| commit | 465a4b80e2afd93f2eb4c9f55233788ebfb47ac0 | [log] [tgz] |
|---|---|---|
| author | Paolo Bonzini <pbonzini@redhat.com> | Fri May 02 11:42:48 2025 +0200 |
| committer | Paolo Bonzini <pbonzini@redhat.com> | Tue May 06 16:02:04 2025 +0200 |
| tree | 5ef8e309c228f73bb045b7ed2ec5f4f031566642 | |
| parent | 51209c2aed343a45f79b522706c807abbdcf01a3 [diff] |
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>