bindings: rust: clippy: drop unnecessary casts
authorErik Schilling <erik.schilling@linaro.org>
Fri, 30 Jun 2023 11:18:44 +0000 (13:18 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 30 Jun 2023 12:10:20 +0000 (14:10 +0200)
commit901104ec2fa5f4c60f157ccb236a9b967fa7fa6b
tree116b0decf245a7b58de777f18b8d914c2fb5291c
parent72cd9898edbdd6838dce8e84f7a35db2d637e0ae
bindings: rust: clippy: drop unnecessary casts

Fixes clippy warnings on these lines.

Applied the suggested fix using:

    cargo clippy --fix

clippy version: clippy 0.1.70 (90c5418 2023-05-31).

Reported-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20230612154055.56556-1-warthog618@gmail.com
Signed-off-by: Erik Schilling <erik.schilling@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
12 files changed:
bindings/rust/gpiosim-sys/src/lib.rs
bindings/rust/gpiosim-sys/src/sim.rs
bindings/rust/libgpiod/src/chip.rs
bindings/rust/libgpiod/src/edge_event.rs
bindings/rust/libgpiod/src/event_buffer.rs
bindings/rust/libgpiod/src/info_event.rs
bindings/rust/libgpiod/src/lib.rs
bindings/rust/libgpiod/src/line_config.rs
bindings/rust/libgpiod/src/line_request.rs
bindings/rust/libgpiod/src/line_settings.rs
bindings/rust/libgpiod/src/request_config.rs
bindings/rust/libgpiod/tests/chip.rs