Remove lifetimes from wasm ast nodes.

This commit is contained in:
Tom Alexander
2023-12-29 12:49:43 -05:00
parent 9f4f8e79ce
commit a0a4f0eb90
68 changed files with 2438 additions and 2472 deletions

View File

@@ -10,13 +10,13 @@ use crate::wasm::WasmAstNode;
#[derive(Debug, Serialize)]
#[serde(tag = "ast_node")]
#[serde(rename = "org-data")]
pub struct WasmCode<'s, 'p> {
pub struct WasmCode {
standard_properties: WasmStandardProperties,
children: Vec<WasmAstNode<'s, 'p>>,
children: Vec<WasmAstNode>,
}
to_wasm!(
WasmCode<'s, 'p>,
WasmCode,
Code<'s>,
original,
wasm_context,
@@ -29,8 +29,8 @@ to_wasm!(
}
);
impl<'s, 'p> Into<WasmAstNode<'s, 'p>> for WasmCode<'s, 'p> {
fn into(self) -> WasmAstNode<'s, 'p> {
impl Into<WasmAstNode> for WasmCode {
fn into(self) -> WasmAstNode {
WasmAstNode::Code(self)
}
}