Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWhiteWu committed Dec 23, 2023
1 parent de5d4a9 commit 9b5fad5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,7 @@ impl Repr {
Self::ArcStr(arc_str) => arc_str,
Self::ArcString(arc_string) => arc_string,
Self::StaticStr(s) => s,
Self::Inline { len, buf } => unsafe {
std::str::from_utf8_unchecked(&buf[..*len])
},
Self::Inline { len, buf } => unsafe { std::str::from_utf8_unchecked(&buf[..*len]) },
}
}

Expand Down

0 comments on commit 9b5fad5

Please sign in to comment.