From: Miguel Ojeda Date: Tue, 9 Jun 2026 10:41:51 +0000 (+0200) Subject: rust: str: use the "kernel vertical" imports style X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=724a93a9f6033800b02a3530dbcb464638448e7f;p=thirdparty%2Flinux.git 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 Link: https://patch.msgid.link/20260609104152.261145-1-ojeda@kernel.org Signed-off-by: Miguel Ojeda --- 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;