Skip to content

Commit 22462fc

Browse files
Fix clippy::ptr_cast_constness
1 parent 1544c74 commit 22462fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/value.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ impl From<JSValue> for sys::JSValueRef {
832832

833833
impl From<JSValue> for sys::JSObjectRef {
834834
fn from(value: JSValue) -> Self {
835-
value.raw as *mut _
835+
value.raw.cast_mut()
836836
}
837837
}
838838

0 commit comments

Comments
 (0)