Skip to content

Commit

Permalink
Add _ back to unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark McCaskey committed Dec 18, 2020
1 parent 9bc43c4 commit 89132dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/c-api/src/wasm_c_api/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ See the [`wasm_" $name "_vec_t`] type to get an example."]
if let Some(vec) = ptr {
if !vec.data.is_null() {
let data = vec.data as *mut Option<Box<[<wasm_ $name _t>]>>;
let data: Vec<Option<Box<[<wasm_ $name _t>]>>> = Vec::from_raw_parts(data, vec.size, vec.size);
let _data: Vec<Option<Box<[<wasm_ $name _t>]>>> = Vec::from_raw_parts(data, vec.size, vec.size);

vec.data = ::std::ptr::null_mut();
vec.size = 0;
Expand Down

0 comments on commit 89132dd

Please sign in to comment.