]> www.infradead.org Git - users/dwmw2/qemu.git/commit
rust: clean up define_property macro
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Oct 2024 08:45:00 +0000 (10:45 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Nov 2024 13:18:15 +0000 (14:18 +0100)
commit03a573b960dae735847e6b6877b5cc3d07466e94
treea8a310a5614602a4eb35dcb60859d06e07abfb78
parente90d470733d3d2ca185a0b379ef8773601f60cfb
rust: clean up define_property macro

Use the "struct update" syntax to initialize most of the fields to zero,
and simplify the handmade type-checking of $name.

Reviewed-by: Junjie Mao <junjie.mao@hotmail.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/qemu-api/src/device_class.rs