diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-10-21 13:24:22 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-05 14:18:15 +0100 |
commit | e90d470733d3d2ca185a0b379ef8773601f60cfb (patch) | |
tree | 353354a1e84a5d14088a4646a101d6230e9b153a /rust/qemu-api/build.rs | |
parent | cde3c425d16f6d0c8e6f47940ef5152b9021f3f2 (diff) | |
download | qemu-e90d470733d3d2ca185a0b379ef8773601f60cfb.zip qemu-e90d470733d3d2ca185a0b379ef8773601f60cfb.tar.gz qemu-e90d470733d3d2ca185a0b379ef8773601f60cfb.tar.bz2 |
rust: cleanup module_init!, use it from #[derive(Object)]
Remove the duplicate code by using the module_init! macro; at the same time,
simplify how module_init! is used, by taking inspiration from the implementation
of #[derive(Object)].
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/build.rs')
0 files changed, 0 insertions, 0 deletions