diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs index 1a972094f577c7..24288b0291ab38 100644 --- a/rust/kernel/str.rs +++ b/rust/kernel/str.rs @@ -2,8 +2,8 @@ //! String representations. -use core::ops::{self, Deref, Index}; use core::fmt::{self, Write}; +use core::ops::{self, Deref, Index}; use crate::bindings; use crate::c_types; @@ -58,9 +58,7 @@ struct Utf8Chars<'a> { impl<'a> Utf8Chars<'a> { fn new(s: &'a [u8]) -> Self { - Self { - remainder: s, - } + Self { remainder: s } } }