summary refs log tree commit diff stats
path: root/rust/qemu-api/src/lib.rs
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-10-18 10:45:00 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-11-05 14:18:15 +0100
commit03a573b960dae735847e6b6877b5cc3d07466e94 (patch)
treea8a310a5614602a4eb35dcb60859d06e07abfb78 /rust/qemu-api/src/lib.rs
parente90d470733d3d2ca185a0b379ef8773601f60cfb (diff)
downloadfocaccia-qemu-03a573b960dae735847e6b6877b5cc3d07466e94.tar.gz
focaccia-qemu-03a573b960dae735847e6b6877b5cc3d07466e94.zip
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>
Diffstat (limited to 'rust/qemu-api/src/lib.rs')
0 files changed, 0 insertions, 0 deletions