rust: qemu-macros: remove redundant clone()

This is reported by Clippy in the latest nightly builds.  Take
a reference instead of cloning.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini committed 2026-09-08 15:37:51 +02:00
1 parent 3ab8a15569
commit e43092b0ce
1 file changed
+1 -1
+1 -1
View File
@@ -261,7 +261,7 @@ fn derive_device_or_error(input: DeriveInput) -> Result<proc_macro2::TokenStream
}
},
)?;
let field_ty = field.ty.clone();
let field_ty = &field.ty;
let (qdev_prop, bitval) = if let Some(bitval) = bitnr {
(
quote! { <#field_ty as ::hwcore::QDevProp>::BIT_INFO },