summaryrefslogtreecommitdiff
path: root/samples/rust/rust_misc_device.rs
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-01-23 17:19:42 +0000
committerMiguel Ojeda <ojeda@kernel.org>2026-01-26 18:15:20 +0100
commitfcbc35587778738145d4f18f95d44631a5c54845 (patch)
tree39f3a36dd74b61fe22b8a39a5939054063d24186 /samples/rust/rust_misc_device.rs
parente741e19d7691c5e6f5c2bbff980d835dccb86054 (diff)
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>
Diffstat (limited to 'samples/rust/rust_misc_device.rs')
-rw-r--r--samples/rust/rust_misc_device.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/samples/rust/rust_misc_device.rs b/samples/rust/rust_misc_device.rs
index d69bc33dbd99..3ef8da543abf 100644
--- a/samples/rust/rust_misc_device.rs
+++ b/samples/rust/rust_misc_device.rs
@@ -95,8 +95,6 @@
//! }
//! ```
-use core::pin::Pin;
-
use kernel::{
c_str,
device::Device,