Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
larziwau authored Nov 28, 2024
1 parent a93bb15 commit 1e049ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/esp/src/types/fast_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl FastString {
/// Converts the string to a `&str`, bypassing utf-8 validation checks
#[inline]
pub fn to_str_unchecked(&self) -> &str {
unsafe std::str::from_utf8_unchecked(self.as_bytes())
unsafe { std::str::from_utf8_unchecked(self.as_bytes()) }
}

/// Converts the string to a `&str`, returns "<invalid UTF-8 string>"" if utf-8 validation fails
Expand Down

0 comments on commit 1e049ce

Please sign in to comment.