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 1e049ce commit dbe1014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/esp/src/types/inline_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl<const N: usize> InlineString<N> {
.expect("Attempted to unsafely convert a non-UTF-8 InlineString into a string slice");

#[cfg(not(debug_assertions))]
let ret = unsafe std::str::from_utf8_unchecked(&self.buffer[..self.len()]);
let ret = unsafe { std::str::from_utf8_unchecked(&self.buffer[..self.len()]) };

ret
}
Expand Down

0 comments on commit dbe1014

Please sign in to comment.