Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mbartlett21 authored Nov 10, 2021
1 parent 45a5968 commit 0a86075
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rust/kernel/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -58,9 +58,7 @@ struct Utf8Chars<'a> {

impl<'a> Utf8Chars<'a> {
fn new(s: &'a [u8]) -> Self {
Self {
remainder: s,
}
Self { remainder: s }
}
}

Expand Down

0 comments on commit 0a86075

Please sign in to comment.