mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
rust: str: use the "kernel vertical" imports style
[ Upstream commit724a93a9f6] 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:
committed by
Greg Kroah-Hartman
parent
8dee7c278f
commit
3603500c86
+20
-5
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user