Remove lifetimes from wasm ast nodes.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user