From b3a68742a97bf8206d5661267bcaf9b4c2f3e538 Mon Sep 17 00:00:00 2001 From: Rerumu Date: Wed, 5 Jan 2022 19:59:32 -0500 Subject: [PATCH] Make clippy happy --- wasm/src/ast/builder.rs | 1 + wasm/src/writer/base.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/wasm/src/ast/builder.rs b/wasm/src/ast/builder.rs index 9e66459..5819824 100644 --- a/wasm/src/ast/builder.rs +++ b/wasm/src/ast/builder.rs @@ -390,6 +390,7 @@ impl<'a> Builder<'a> { } } + #[allow(clippy::too_many_lines)] fn new_stored_body(&mut self, list: &mut &[Instruction]) -> Vec { use Instruction as Inst; diff --git a/wasm/src/writer/base.rs b/wasm/src/writer/base.rs index 7ba3115..ec5426b 100644 --- a/wasm/src/writer/base.rs +++ b/wasm/src/writer/base.rs @@ -9,6 +9,8 @@ pub trait Transpiler<'a> { where Self: Sized; + /// # Errors + /// Returns `Err` if writing to `Writer` failed. fn runtime(writer: Writer) -> Result<()>; /// # Errors