]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: str: use the "kernel vertical" imports style
authorMiguel Ojeda <ojeda@kernel.org>
Tue, 9 Jun 2026 10:41:51 +0000 (12:41 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Wed, 10 Jun 2026 07:07:13 +0000 (09:07 +0200)
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
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>
rust/kernel/str.rs

index a435674f05eabf286a314d9d24938558e84cd9c6..4eae05e4baf95440d29f4c6e0ab7d6d1ffd9d551 100644 (file)
@@ -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;