Skip to content

Commit 3be713a

Browse files
committed
chore: add clippy::cast_ptr_alignment to JsString::as_str
1 parent 8a16f4e commit 3be713a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/string/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ impl JsString {
321321
/// Obtains the underlying [`&[u16]`][slice] slice of a [`JsString`]
322322
#[inline]
323323
#[must_use]
324+
#[allow(clippy::cast_ptr_alignment)]
324325
pub fn as_str(&self) -> JsStr<'_> {
325326
match self.ptr.unwrap() {
326327
UnwrappedTagged::Ptr(h) => {

0 commit comments

Comments
 (0)