commit | e90d470733d3d2ca185a0b379ef8773601f60cfb | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Mon Oct 21 13:24:22 2024 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Nov 05 14:18:15 2024 +0100 |
tree | 353354a1e84a5d14088a4646a101d6230e9b153a | |
parent | cde3c425d16f6d0c8e6f47940ef5152b9021f3f2 [diff] |
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>