rust: qom: change the parent type to an associated type
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 24 Nov 2024 17:51:34 +0000 (18:51 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Dec 2024 14:57:19 +0000 (15:57 +0100)
commit166e8a1fd15bfa527b25fc15ca315e572c0556d2
treed72f812798ea3ded3bda9130b0469175f49d3381
parent7bd8e3ef63330e870cf4644d21c285cce35c703d
rust: qom: change the parent type to an associated type

Avoid duplicated code to retrieve the QOM type strings from the
Rust type.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/char/pl011/src/device.rs
rust/qemu-api/src/definitions.rs
rust/qemu-api/tests/tests.rs