diff --git a/src/interpreter/instruction.rs b/src/interpreter/instruction.rs index ddf8be6..5364ac5 100644 --- a/src/interpreter/instruction.rs +++ b/src/interpreter/instruction.rs @@ -4,19 +4,31 @@ use crate::ast::InterfaceType; #[derive(PartialEq, Debug)] pub enum Instruction<'input> { /// The `arg.get` instruction. - ArgumentGet { index: u64 }, + ArgumentGet { + /// The argument index. + index: u64, + }, /// The `call` instruction. - Call { function_index: usize }, + Call { + /// The function index. + function_index: usize, + }, /// The `call-export` instruction. - CallExport { export_name: &'input str }, + CallExport { + /// The exported function name. + export_name: &'input str, + }, /// The `read-utf8` instruction. ReadUtf8, /// The `write-utf8` instruction. - WriteUtf8 { allocator_name: &'input str }, + WriteUtf8 { + /// The allocator function name. + allocator_name: &'input str, + }, /// The `as-wasm` instruction. AsWasm(InterfaceType), diff --git a/src/interpreter/wasm/structures.rs b/src/interpreter/wasm/structures.rs index 7ec386f..dbeab83 100644 --- a/src/interpreter/wasm/structures.rs +++ b/src/interpreter/wasm/structures.rs @@ -1,3 +1,5 @@ +#![allow(missing_docs)] + use super::values::{InterfaceType, InterfaceValue}; use std::{cell::Cell, ops::Deref}; diff --git a/src/interpreter/wasm/values.rs b/src/interpreter/wasm/values.rs index 632a88f..f50763f 100644 --- a/src/interpreter/wasm/values.rs +++ b/src/interpreter/wasm/values.rs @@ -1,3 +1,5 @@ +#![allow(missing_docs)] + use std::convert::TryFrom; pub use crate::ast::InterfaceType; diff --git a/src/lib.rs b/src/lib.rs index 64dac5b..99a8f83 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -33,12 +33,13 @@ #![deny( dead_code, + missing_docs, nonstandard_style, + unreachable_patterns, unused_imports, unused_mut, - unused_variables, unused_unsafe, - unreachable_patterns + unused_variables )] #![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] #![doc(html_logo_url = "https://github.com/wasmerio.png")]