Skip to content

Commit 686837f

Browse files
Andreas Hindborgkawasaki
authored andcommitted
rust: str: normalize imports in str.rs
Clean up imports in `str.rs`. This makes future code manipulation more manageable. Signed-off-by: Andreas Hindborg <[email protected]> Reviewed-by: Alice Ryhl <[email protected]>
1 parent e311dd9 commit 686837f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

rust/kernel/str.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
//! String representations.
44
55
use crate::alloc::{flags::*, AllocError, KVec};
6-
use core::fmt::{self, Write};
7-
use core::ops::{self, Deref, DerefMut, Index};
8-
96
use crate::prelude::*;
7+
use core::{
8+
fmt::{self, Write},
9+
ops::{self, Deref, DerefMut, Index},
10+
};
1011

1112
/// Byte string without UTF-8 validity guarantee.
1213
#[repr(transparent)]

0 commit comments

Comments
 (0)