From ffb1e095fc1d6a2d54cc7637797c625dee6ebe6a Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Wed, 29 May 2024 01:39:21 +0200 Subject: chore: update deps, cleanup Signed-off-by: Henry Gressmann --- crates/parser/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/parser/src/lib.rs') diff --git a/crates/parser/src/lib.rs b/crates/parser/src/lib.rs index 4ee9bb5..51743c7 100644 --- a/crates/parser/src/lib.rs +++ b/crates/parser/src/lib.rs @@ -92,7 +92,7 @@ impl Parser { return Err(ParseError::EndNotReached); } - reader.to_module() + reader.into_module() } #[cfg(feature = "std")] @@ -132,7 +132,7 @@ impl Parser { reader.process_payload(payload, &mut validator)?; buffer.drain(..consumed); if eof || reader.end_reached { - return reader.to_module(); + return reader.into_module(); } } }; @@ -144,6 +144,6 @@ impl TryFrom for TinyWasmModule { type Error = ParseError; fn try_from(reader: ModuleReader) -> Result { - reader.to_module() + reader.into_module() } } -- cgit v1.3.1