aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorMiguel Ojeda <[email protected]>2024-04-01 21:23:02 +0000
committerMiguel Ojeda <[email protected]>2024-05-05 17:22:25 +0000
commit00280272a0e5d98055e4d47db38a9b4b5517520e (patch)
tree1f2482549a98cbe273b682798f467e1edfcb12ab /scripts/generate_rust_target.rs
parentrust: sync: implement `Default` for `LockClassKey` (diff)
downloadkernel-00280272a0e5d98055e4d47db38a9b4b5517520e.tar.gz
kernel-00280272a0e5d98055e4d47db38a9b4b5517520e.zip
rust: kernel: remove redundant imports
Rust's `unused_imports` lint covers both unused and redundant imports. In the upcoming 1.78.0, the lint detects more cases of redundant imports [1], e.g.: error: the item `bindings` is imported redundantly --> rust/kernel/print.rs:38:9 | 38 | use crate::bindings; | ^^^^^^^^^^^^^^^ the item `bindings` is already defined by prelude Most cases are `use crate::bindings`, plus a few other items like `Box`. Thus clean them up. Note that, in the `bindings` case, the message "defined by prelude" above means the extern prelude, i.e. the `--extern` flags we pass. Link: https://github.com/rust-lang/rust/pull/117772 [1] Reviewed-by: Alice Ryhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions