Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl committed Oct 24, 2024
1 parent e7526f5 commit 9e1e0c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/string/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ impl<'a> From<JsStr<'a>> for JsStrDisplayEscaped<'a> {
}
}


/// Display implementation for [`crate::JsString`] that escapes unicode characters.
#[derive(Debug)]
pub struct JsStrDisplayLossy<'a> {
Expand All @@ -44,7 +43,9 @@ pub struct JsStrDisplayLossy<'a> {
impl fmt::Display for JsStrDisplayLossy<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
// No need to optimize latin1.
self.inner.code_points_lossy().try_for_each(|c| f.write_char(c))
self.inner
.code_points_lossy()
.try_for_each(|c| f.write_char(c))
}
}

Expand Down

0 comments on commit 9e1e0c5

Please sign in to comment.