From 0a86075f773a8e7dec6b06d9ca23a15953468d4c Mon Sep 17 00:00:00 2001 From: mbartlett21 <29034492+mbartlett21@users.noreply.github.com> Date: Thu, 11 Nov 2021 07:46:25 +1000 Subject: [PATCH] Format --- rust/kernel/str.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 } } }