Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Jan 19, 2025
1 parent 5a4de8a commit 5480893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/epkv-utils/src/bytes_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl BytesStr {

#[inline]
#[allow(unsafe_code)]
pub fn as_str(&self) -> &str {
pub const fn as_str(&self) -> &str {
unsafe { core::str::from_utf8_unchecked(&self.0) }
}
}
Expand Down

0 comments on commit 5480893

Please sign in to comment.