mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-16 00:00:49 +00:00
lint
This commit is contained in:
parent
5294eb6b0d
commit
c684ea46f0
@ -48,7 +48,6 @@ impl FileLike for Stdout {
|
||||
|
||||
fn set_file_len(&mut self, _len: usize) -> Result<(), failure::Error> {
|
||||
panic!("Cannot set length of stdout");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@ use failure::Error;
|
||||
|
||||
use crate::vfs::file_like::{FileLike, Metadata};
|
||||
use std::io;
|
||||
use std::io::{Seek, SeekFrom, Write, Read};
|
||||
use std::io::{Read, Seek, SeekFrom, Write};
|
||||
|
||||
impl FileLike for zbox::File {
|
||||
fn metadata(&self) -> Result<Metadata, Error> {
|
||||
|
@ -67,11 +67,13 @@ pub fn compile_with(
|
||||
compiler: &dyn backend::Compiler,
|
||||
) -> CompileResult<module::Module> {
|
||||
let token = backend::Token::generate();
|
||||
compiler.compile(wasm, Default::default(), token).map(|mut inner| {
|
||||
let inner_info: &mut crate::module::ModuleInfo = &mut inner.info;
|
||||
inner_info.import_custom_sections(wasm).unwrap();
|
||||
module::Module::new(Arc::new(inner))
|
||||
})
|
||||
compiler
|
||||
.compile(wasm, Default::default(), token)
|
||||
.map(|mut inner| {
|
||||
let inner_info: &mut crate::module::ModuleInfo = &mut inner.info;
|
||||
inner_info.import_custom_sections(wasm).unwrap();
|
||||
module::Module::new(Arc::new(inner))
|
||||
})
|
||||
}
|
||||
|
||||
/// The same as `compile_with` but changes the compiler behavior
|
||||
|
Loading…
x
Reference in New Issue
Block a user