mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
samples: rust: remove imports available via prelude
These imports are already in scope by importing `kernel::prelude::*` and does not need to be imported separately. Signed-off-by: Gary Guo <gary@garyguo.net> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Acked-by: Danilo Krummrich <dakr@kernel.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://patch.msgid.link/20260123172007.136873-4-gary@garyguo.net Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
parent
e741e19d76
commit
fcbc355877
3 changed files with 1 additions and 4 deletions
|
|
@ -16,7 +16,6 @@ use kernel::{
|
|||
};
|
||||
|
||||
use core::any::TypeId;
|
||||
use pin_init::PinInit;
|
||||
|
||||
const MODULE_NAME: &CStr = <LocalModule as kernel::ModuleMetadata>::NAME;
|
||||
const AUXILIARY_NAME: &CStr = c_str!("auxiliary");
|
||||
|
|
|
|||
|
|
@ -95,8 +95,6 @@
|
|||
//! }
|
||||
//! ```
|
||||
|
||||
use core::pin::Pin;
|
||||
|
||||
use kernel::{
|
||||
c_str,
|
||||
device::Device,
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ impl Drop for RustPrint {
|
|||
}
|
||||
|
||||
mod trace {
|
||||
use kernel::ffi::c_int;
|
||||
use kernel::prelude::*;
|
||||
|
||||
kernel::declare_trace! {
|
||||
/// # Safety
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue