mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
rust: fix a couple style issues from clippy
These are reported as clippy::semicolon_inside_block and clippy::as_ptr_cast_mut. clippy::semicolon_inside_block can be configured not to lint single-line blocks; just go with the default. Reviewed-by: Junjie Mao <junjie.mao@hotmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
de98c17593
commit
7a35e2fb80
3 changed files with 9 additions and 5 deletions
|
@ -74,6 +74,6 @@ fn test_device_decl_macros() {
|
|||
|
||||
unsafe {
|
||||
module_call_init(module_init_type::MODULE_INIT_QOM);
|
||||
object_unref(object_new(DummyState::TYPE_NAME.as_ptr()) as *mut _);
|
||||
object_unref(object_new(DummyState::TYPE_NAME.as_ptr()).cast());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue