Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: str: normalize imports in `str.rs`

Clean up imports in `str.rs`. This makes future code manipulation more
manageable.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250902-rnull-up-v6-16-v7-1-b5212cc89b98@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Andreas Hindborg and committed by
Jens Axboe
d5d060d6 2a061452

+5 -4
+5 -4
rust/kernel/str.rs
··· 2 2 3 3 //! String representations. 4 4 5 - use crate::alloc::{flags::*, AllocError, KVec}; 6 - use crate::fmt::{self, Write}; 5 + use crate::{ 6 + alloc::{flags::*, AllocError, KVec}, 7 + fmt::{self, Write}, 8 + prelude::*, 9 + }; 7 10 use core::ops::{self, Deref, DerefMut, Index}; 8 - 9 - use crate::prelude::*; 10 11 11 12 /// Byte string without UTF-8 validity guarantee. 12 13 #[repr(transparent)]