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

@@ -4,10 +4,10 @@ use crate::error::CustomError;
use crate::types::Element;
use crate::types::Object;
pub trait ToWasm<'p> {
pub trait ToWasm {
type Output;
fn to_wasm(&'p self, full_document: ToWasmContext<'_>) -> Result<Self::Output, CustomError>;
fn to_wasm(&self, full_document: ToWasmContext<'_>) -> Result<Self::Output, CustomError>;
}
pub(crate) trait ToWasmStandardProperties {
@@ -31,7 +31,7 @@ impl<'s> ToWasmContext<'s> {
}
to_wasm!(
WasmAstNode<'s, 'p>,
WasmAstNode,
Element<'s>,
original,
wasm_context,
@@ -93,7 +93,7 @@ to_wasm!(
);
to_wasm!(
WasmAstNode<'s, 'p>,
WasmAstNode,
Object<'s>,
original,
wasm_context,