summaryrefslogtreecommitdiff
path: root/rust/kernel/str.rs
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2026-06-09 12:41:51 +0200
committerMiguel Ojeda <ojeda@kernel.org>2026-06-10 09:07:13 +0200
commit724a93a9f6033800b02a3530dbcb464638448e7f (patch)
tree0db68bb454ceefd934d1397d6495dae4a61b4339 /rust/kernel/str.rs
parent8e86830d6261bc43dda1def09cfa3ea5decbb757 (diff)
downloadlwn-724a93a9f6033800b02a3530dbcb464638448e7f.tar.gz
lwn-724a93a9f6033800b02a3530dbcb464638448e7f.zip
rust: str: use the "kernel vertical" imports style
Convert the imports to use the "kernel vertical" imports style [1]. No functional changes intended. Link: https://docs.kernel.org/rust/coding-guidelines.html#imports [1] Reviewed-by: Gary Guo <gary@garyguo.net> Link: https://patch.msgid.link/20260609104152.261145-1-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/str.rs')
-rw-r--r--rust/kernel/str.rs24
1 files changed, 19 insertions, 5 deletions
diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs
index a435674f05ea..4eae05e4baf9 100644
--- a/rust/kernel/str.rs
+++ b/rust/kernel/str.rs
@@ -3,14 +3,28 @@
//! String representations.
use crate::{
- alloc::{flags::*, AllocError, KVec},
- error::{to_result, Result},
- fmt::{self, Write},
- prelude::*,
+ alloc::{
+ flags::*,
+ AllocError,
+ KVec, //
+ },
+ error::{
+ to_result,
+ Result, //
+ },
+ fmt::{
+ self,
+ Write, //
+ },
+ prelude::*, //
};
use core::{
marker::PhantomData,
- ops::{Deref, DerefMut, Index},
+ ops::{
+ Deref,
+ DerefMut,
+ Index, //
+ }, //
};
pub use crate::prelude::CStr;