summaryrefslogtreecommitdiff
path: root/samples/rust/rust_debugfs_scoped.rs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/rust/rust_debugfs_scoped.rs')
-rw-r--r--samples/rust/rust_debugfs_scoped.rs21
1 files changed, 15 insertions, 6 deletions
diff --git a/samples/rust/rust_debugfs_scoped.rs b/samples/rust/rust_debugfs_scoped.rs
index 702a6546d3fb..cb5d3dfdc599 100644
--- a/samples/rust/rust_debugfs_scoped.rs
+++ b/samples/rust/rust_debugfs_scoped.rs
@@ -6,12 +6,21 @@
//! `Scope::dir` to create a variety of files without the need to separately
//! track them all.
-use kernel::debugfs::{Dir, Scope};
-use kernel::prelude::*;
-use kernel::sizes::*;
-use kernel::sync::atomic::Atomic;
-use kernel::sync::Mutex;
-use kernel::{c_str, new_mutex, str::CString};
+use kernel::{
+ c_str,
+ debugfs::{
+ Dir,
+ Scope, //
+ },
+ new_mutex,
+ prelude::*,
+ sizes::*,
+ str::CString,
+ sync::{
+ atomic::Atomic,
+ Mutex, //
+ },
+};
module! {
type: RustScopedDebugFs,