Sha256: 4c068e81d876237a7e0a0e91519896bd670c2f999ca729f7fb970caf888cab46

Contents?: true

Size: 335 Bytes

Versions: 8

Compression:

Stored size: 335 Bytes

Contents

extern crate std;

use crate::Error;
use std::io;

impl From<Error> for io::Error {
    fn from(err: Error) -> Self {
        match err.raw_os_error() {
            Some(errno) => io::Error::from_raw_os_error(errno),
            None => io::Error::new(io::ErrorKind::Other, err),
        }
    }
}

impl std::error::Error for Error {}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/getrandom-0.2.15/src/error_impls.rs
wasmtime-28.0.0 ./ext/cargo-vendor/getrandom-0.2.15/src/error_impls.rs
wasmtime-27.0.0 ./ext/cargo-vendor/getrandom-0.2.15/src/error_impls.rs
wasmtime-26.0.0 ./ext/cargo-vendor/getrandom-0.2.15/src/error_impls.rs
wasmtime-25.0.2 ./ext/cargo-vendor/getrandom-0.2.15/src/error_impls.rs
wasmtime-25.0.1 ./ext/cargo-vendor/getrandom-0.2.15/src/error_impls.rs
wasmtime-25.0.0 ./ext/cargo-vendor/getrandom-0.2.15/src/error_impls.rs
wasmtime-24.0.0 ./ext/cargo-vendor/getrandom-0.2.15/src/error_impls.rs