Re: [PATCH 09/13] rust: clean up define_property macro

2024-10-21 Thread Junjie Mao
Paolo Bonzini writes: > Il lun 21 ott 2024, 12:39 Junjie Mao ha scritto: > > Paolo Bonzini writes: > > > Use the "struct update" syntax to initialize most of the fields to zero, > > and simplify the handmade type-checking of $name. > > > > Signed-off-by: Paolo Bonzini > > --- > > rus

Re: [PATCH 09/13] rust: clean up define_property macro

2024-10-21 Thread Paolo Bonzini
Il lun 21 ott 2024, 12:39 Junjie Mao ha scritto: > > Paolo Bonzini writes: > > > Use the "struct update" syntax to initialize most of the fields to zero, > > and simplify the handmade type-checking of $name. > > > > Signed-off-by: Paolo Bonzini > > --- > > rust/qemu-api/src/device_class.rs | 2

Re: [PATCH 09/13] rust: clean up define_property macro

2024-10-21 Thread Junjie Mao
Paolo Bonzini writes: > Use the "struct update" syntax to initialize most of the fields to zero, > and simplify the handmade type-checking of $name. > > Signed-off-by: Paolo Bonzini > --- > rust/qemu-api/src/device_class.rs | 29 ++--- > 1 file changed, 6 insertions(+)

[PATCH 09/13] rust: clean up define_property macro

2024-10-18 Thread Paolo Bonzini
Use the "struct update" syntax to initialize most of the fields to zero, and simplify the handmade type-checking of $name. Signed-off-by: Paolo Bonzini --- rust/qemu-api/src/device_class.rs | 29 ++--- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/rust/qe