mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Revert "impl From for EmscriptenVfsError"
This reverts commit 18eae44577
.
This commit is contained in:
parent
18eae44577
commit
b6eb830bf4
@ -102,7 +102,9 @@ impl EmscriptenVfs {
|
||||
match self.fd_map.get(&fd) {
|
||||
Some(FileHandle::Vf(file)) => {
|
||||
let mut mut_ref = RefCell::borrow_mut(file);
|
||||
mut_ref.write_file(buf_slice, 0).into()
|
||||
mut_ref
|
||||
.write_file(buf_slice, 0)
|
||||
.map_err(|e| EmscriptenVfsError::Io(e))
|
||||
}
|
||||
Some(FileHandle::Socket(host_fd)) => unsafe {
|
||||
let result = libc::write(*host_fd, buf_slice.as_ptr() as _, count as _);
|
||||
@ -147,9 +149,3 @@ pub enum EmscriptenVfsError {
|
||||
Errno(errno::Errno),
|
||||
FileSystemError,
|
||||
}
|
||||
|
||||
impl From<io::Error> for EmscriptenVfsError {
|
||||
fn from(io_error: io::Error) -> Self {
|
||||
EmscriptenVfsError::Io(io_error)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user