Skip to content

Commit d5d060d

Browse files
Andreas Hindborgaxboe
authored andcommitted
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>
1 parent 2a06145 commit d5d060d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

rust/kernel/str.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
//! String representations.
44
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+
};
710
use core::ops::{self, Deref, DerefMut, Index};
811

9-
use crate::prelude::*;
10-
1112
/// Byte string without UTF-8 validity guarantee.
1213
#[repr(transparent)]
1314
pub struct BStr([u8]);

0 commit comments

Comments
 (0)