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