Explicitly use the core crate
This way it shouldn't matter if anybody e.g. imports other `Option` or redefines `Result`.
This commit is contained in:
parent
c9c83e44c7
commit
0474402aca
|
@ -21,7 +21,12 @@ pub fn codegen(ext_def: &ImplBlockDef, to: &mut TokenStream) {
|
|||
impl #impl_generics #ty #where_clause {
|
||||
const __WASMI_DERIVE_IMPL: () = {
|
||||
extern crate wasmi as _wasmi;
|
||||
extern crate core as _core;
|
||||
|
||||
use _core::{
|
||||
result::Result,
|
||||
option::Option,
|
||||
};
|
||||
use _wasmi::{
|
||||
Trap, RuntimeValue, RuntimeArgs, Externals, ValueType, ModuleImportResolver,
|
||||
Signature, FuncRef, Error, FuncInstance,
|
||||
|
|
Loading…
Reference in New Issue