summaryrefslogtreecommitdiffstats
path: root/rust/kernel/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/kernel/src')
-rw-r--r--rust/kernel/src/prelude.rs12
-rw-r--r--rust/kernel/src/user_ptr.rs3
2 files changed, 4 insertions, 11 deletions
diff --git a/rust/kernel/src/prelude.rs b/rust/kernel/src/prelude.rs
index 75a5017488a4..36d9e2104f68 100644
--- a/rust/kernel/src/prelude.rs
+++ b/rust/kernel/src/prelude.rs
@@ -2,16 +2,8 @@
//! The `kernel` prelude
-pub use alloc::{
- string::String,
- borrow::ToOwned,
-};
+pub use alloc::{borrow::ToOwned, string::String};
pub use module::module;
-pub use super::{
- println,
- KernelResult,
- KernelModule,
-};
-
+pub use super::{println, KernelModule, KernelResult};
diff --git a/rust/kernel/src/user_ptr.rs b/rust/kernel/src/user_ptr.rs
index 19ecb711e24a..986043c4596f 100644
--- a/rust/kernel/src/user_ptr.rs
+++ b/rust/kernel/src/user_ptr.rs
@@ -9,7 +9,8 @@ use crate::c_types;
use crate::error;
extern "C" {
- fn rust_helper_access_ok(addr: *const c_types::c_void, len: c_types::c_ulong) -> c_types::c_int;
+ fn rust_helper_access_ok(addr: *const c_types::c_void, len: c_types::c_ulong)
+ -> c_types::c_int;
}
/// A reference to an area in userspace memory, which can be either