Remove phantom data.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
use std::marker::PhantomData;
|
||||
|
||||
use serde::Serialize;
|
||||
|
||||
use super::ast_node::WasmAstNode;
|
||||
@@ -14,8 +12,7 @@ use crate::wasm::to_wasm::ToWasmStandardProperties;
|
||||
#[serde(rename = "section")]
|
||||
pub(crate) struct WasmSection<'s, 'p> {
|
||||
standard_properties: WasmStandardProperties,
|
||||
children: Vec<()>,
|
||||
phantom: PhantomData<&'s ()>,
|
||||
children: Vec<WasmAstNode<'s, 'p>>,
|
||||
}
|
||||
|
||||
to_wasm!(
|
||||
@@ -28,7 +25,6 @@ to_wasm!(
|
||||
Ok(WasmSection {
|
||||
standard_properties,
|
||||
children: Vec::new(),
|
||||
phantom: PhantomData,
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user