Skip to content

Commit

Permalink
chore: add clippy::cast_ptr_alignment to JsString::as_str
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyboyQCD committed Dec 18, 2024
1 parent 8a16f4e commit 3be713a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/string/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ impl JsString {
/// Obtains the underlying [`&[u16]`][slice] slice of a [`JsString`]
#[inline]
#[must_use]
#[allow(clippy::cast_ptr_alignment)]
pub fn as_str(&self) -> JsStr<'_> {
match self.ptr.unwrap() {
UnwrappedTagged::Ptr(h) => {
Expand Down

0 comments on commit 3be713a

Please sign in to comment.