Return Features & Target by reference in Compiler

This commit is contained in:
Syrus
2020-04-22 11:07:15 -07:00
parent 1fd8eb0cd4
commit f62f475309
3 changed files with 10 additions and 10 deletions

View File

@@ -16,10 +16,10 @@ use wasmparser::{validate, OperatorValidatorConfig, ValidatingParserConfig};
/// An implementation of a Compiler from parsed WebAssembly module to Compiled native code.
pub trait Compiler {
/// Gets the target associated with this compiler
fn target(&self) -> Target;
fn target(&self) -> &Target;
/// Gets the WebAssembly features for this Compiler
fn features(&self) -> Features;
fn features(&self) -> &Features;
/// Validates a module.
///