On Mon, Dec 09, 2024 at 01:37:04PM +0100, Paolo Bonzini wrote: > Date: Mon, 9 Dec 2024 13:37:04 +0100 > From: Paolo Bonzini <pbonz...@redhat.com> > Subject: [PATCH 13/26] rust: qom: automatically use Drop trait to implement > instance_finalize > X-Mailer: git-send-email 2.47.1 > > Replace the customizable INSTANCE_FINALIZE with a generic function > that drops the Rust object. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > rust/qemu-api/src/definitions.rs | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) >
Great idea. It nicely balances the differences between Rust and C QOM conventions. Reviewed-by: Zhao Liu <zhao1....@intel.com>