Skip to content

Commit

Permalink
Merge branch 'transmute-to-boxfrominto' of https://github.com/noname0…
Browse files Browse the repository at this point in the history
…310/nanoem into transmute-to-boxfrominto
  • Loading branch information
noname0310 committed Aug 17, 2024
2 parents b35a693 + 185a890 commit 55a0638
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rust/plugin_wasm/src/model/c_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ pub unsafe extern "C" fn nanoemApplicationPluginModelIODestroy(
plugin: *mut nanoem_application_plugin_model_io_t,
) {
if !plugin.is_null() {
let _ = Box::from_raw(plugin);
let _ = unsafe { Box::from_raw(plugin) };
}
}

Expand Down
2 changes: 1 addition & 1 deletion rust/plugin_wasm/src/motion/c_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ pub unsafe extern "C" fn nanoemApplicationPluginMotionIODestroy(
plugin: *mut nanoem_application_plugin_motion_io_t,
) {
if !plugin.is_null() {
let _ = Box::from_raw(plugin);
let _ = unsafe { Box::from_raw(plugin) };
}
}

Expand Down
2 changes: 1 addition & 1 deletion rust/plugin_wasm_test_model_full/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ pub unsafe extern "C" fn nanoemApplicationPluginModelIODestroy(
.unwrap()
);
if !plugin.is_null() {
let _ = Box::from_raw(plugin);
let _ = unsafe { Box::from_raw(plugin) };
}
}

Expand Down
2 changes: 1 addition & 1 deletion rust/plugin_wasm_test_model_minimum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ pub unsafe extern "C" fn nanoemApplicationPluginModelIODestroy(
.unwrap()
);
if !plugin.is_null() {
let _ = Box::from_raw(plugin);
let _ = unsafe { Box::from_raw(plugin) };
}
}

Expand Down
2 changes: 1 addition & 1 deletion rust/plugin_wasm_test_motion_full/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ pub unsafe extern "C" fn nanoemApplicationPluginMotionIODestroy(
.unwrap()
);
if !plugin.is_null() {
let _ = Box::from_raw(plugin);
let _ = unsafe { Box::from_raw(plugin) };
}
}

Expand Down
2 changes: 1 addition & 1 deletion rust/plugin_wasm_test_motion_minimum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ pub unsafe extern "C" fn nanoemApplicationPluginMotionIODestroy(
.unwrap()
);
if !plugin.is_null() {
let _ = Box::from_raw(plugin);
let _ = unsafe { Box::from_raw(plugin) };
}
}

Expand Down

0 comments on commit 55a0638

Please sign in to comment.