linux/rust
Miguel Ojeda a126eca844 rust: avoid unused import warning in rusttest
When compiling for the `rusttest` target, the `core::ptr` import is
unused since its only use happens in the `reserve()` method which is
not compiled in that target:

    warning: unused import: `core::ptr`
    --> rust/kernel/alloc/vec_ext.rs:7:5
      |
    7 | use core::ptr;
      |     ^^^^^^^^^
      |
      = note: `#[warn(unused_imports)]` on by default

Thus clean it.

Fixes: 97ab3e8eec ("rust: alloc: fix dangling pointer in VecExt<T>::reserve()")
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Danilo Krummrich <dakr@redhat.com>
Link: https://lore.kernel.org/r/20240519210735.587323-1-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2024-06-11 23:33:28 +02:00
..
bindings rust: alloc: introduce allocation flags 2024-04-16 22:05:06 +02:00
kernel rust: avoid unused import warning in rusttest 2024-06-11 23:33:28 +02:00
macros Rust changes for v6.10 2024-05-13 15:13:54 -07:00
uapi
.gitignore
bindgen_parameters
build_error.rs
compiler_builtins.rs
exports.c
helpers.c The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
Makefile LoongArch changes for v6.10 2024-05-22 09:43:07 -07:00