Skip to content

Commit

Permalink
warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
larziwau authored Nov 28, 2024
1 parent 9df0554 commit 449c29a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/esp/src/types/fast_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ impl FastString {

/// Converts the string to a `&str`, bypassing utf-8 validation checks
#[inline]
pub unsafe fn to_str_unchecked(&self) -> &str {
std::str::from_utf8_unchecked(self.as_bytes())
pub fn to_str_unchecked(&self) -> &str {
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 449c29a

Please sign in to comment.