qemu-cr16/rust
Zhao Liu 1bbac0ca88 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
2025-09-22 17:17:18 +02:00
..
bindings/src rust: split "hwcore" crate 2025-09-17 19:00:57 +02:00
bits rust: re-export qemu_macros internal helper in "bits" 2025-09-17 19:00:57 +02:00
bql rust: build: remove "protocol: rust: from doctests 2025-09-22 17:17:18 +02:00
chardev rust: re-export qemu macros from common/qom/hwcore 2025-09-17 19:00:58 +02:00
common rust: build: remove "protocol: rust: from doctests 2025-09-22 17:17:18 +02:00
hw rust: meson: remove unnecessary complication in device crates 2025-09-17 19:00:58 +02:00
migration rust: build: remove "protocol: rust: from doctests 2025-09-22 17:17:18 +02:00
qemu-macros rust/qemu-macros: Fix Clippy's complaints about lambda parameter naming 2025-09-22 17:17:18 +02:00
qom rust: build: remove "protocol: rust: from doctests 2025-09-22 17:17:18 +02:00
system rust: do not inline do_init_io 2025-09-17 19:00:58 +02:00
tests rust: re-export qemu macros from common/qom/hwcore 2025-09-17 19:00:58 +02:00
util rust: build: remove "protocol: rust: from doctests 2025-09-22 17:17:18 +02:00
.gitignore
Cargo.lock rust: qemu-macros: switch #[property] parsing to use combinators 2025-09-22 17:17:18 +02:00
Cargo.toml rust: repurpose qemu_api -> tests 2025-09-17 19:00:57 +02:00
Kconfig rust: add PL011 device model 2024-11-05 14:18:15 +01:00
meson.build subprojects: add attrs crate 2025-09-22 17:17:18 +02:00
rustfmt.toml rust: add crate to expose bindings and interfaces 2024-10-11 12:32:17 +02:00