Fix clippy warnings.

This commit fixes the current set of (stable) clippy warnings in the repo.
This commit is contained in:
Peter Huene
2019-10-23 23:15:42 -07:00
committed by Andrew Brown
parent 1176e4f178
commit 9f506692c2
93 changed files with 667 additions and 662 deletions

View File

@@ -87,7 +87,7 @@ impl From<BinaryReaderError> for WasmError {
/// Convert from a `BinaryReaderError` to a `WasmError`.
fn from(e: BinaryReaderError) -> Self {
let BinaryReaderError { message, offset } = e;
WasmError::InvalidWebAssembly { message, offset }
Self::InvalidWebAssembly { message, offset }
}
}
@@ -478,8 +478,7 @@ pub trait ModuleEnvironment<'data> {
}
/// Indicates that a custom section has been found in the wasm file
fn custom_section(&mut self, name: &'data str, data: &'data [u8]) -> WasmResult<()> {
drop((name, data));
fn custom_section(&mut self, _name: &'data str, _data: &'data [u8]) -> WasmResult<()> {
Ok(())
}
}