diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2025-09-21 00:05:11 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-22 17:17:18 +0200 |
commit | 1bbac0ca88cdfd6ac019685a855c92831e3862e3 (patch) | |
tree | 104755b7e0ee8298b7eabcea01f217185117f61e /rust/common/src | |
parent | d935f0b8e17153e1dcfe93e7660bfd07693b513e (diff) | |
download | qemu-1bbac0ca88cdfd6ac019685a855c92831e3862e3.zip qemu-1bbac0ca88cdfd6ac019685a855c92831e3862e3.tar.gz qemu-1bbac0ca88cdfd6ac019685a855c92831e3862e3.tar.bz2 |
rust/qemu-macros: Fix Clippy's complaints about lambda parameter naming
error: `rename` shadows a previous, unrelated binding
--> qemu-macros/src/lib.rs:265:14
|
265 | |rename| -> Result<proc_macro2::TokenStream, Error> {
| ^^^^^^
|
note: previous binding is here
--> qemu-macros/src/lib.rs:245:30
|
245 | let DeviceProperty { rename, defval } = prop;
| ^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
= note: requested on the command line with `-D clippy::shadow-unrelated`
Rename the lambda parameter to "prop_rename" to fix the above clippy
error.
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20250920160520.3699591-4-zhao1.liu@intel.com
Diffstat (limited to 'rust/common/src')
0 files changed, 0 insertions, 0 deletions