rust: str: use the "kernel vertical" imports style

[ Upstream commit 724a93a9f6 ]

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>
Stable-dep-of: 3fff427180 ("rust: str: clean unused import for Rust >= 1.98")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Miguel Ojeda
2026-07-18 16:53:04 +02:00
committed by Greg Kroah-Hartman
parent 8dee7c278f
commit 3603500c86
+20 -5
View File
@@ -3,14 +3,29 @@
//! 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::{self, Deref, DerefMut, Index},
ops::{
self,
Deref,
DerefMut,
Index, //
}, //
};
/// Byte string without UTF-8 validity guarantee.