Sha256: db5fe8440d68315fd42b25dd2c44e9bd6effb74ef53862b26387620e4777a605

Contents?: true

Size: 359 Bytes

Versions: 115

Compression:

Stored size: 359 Bytes

Contents

#[macro_export]
macro_rules! err {
    (with_errno: $err_t:expr, $($arg:expr),*) => {
        {
            let err = format!($($arg),*);
            let strerror = strerror(errno());
            Error::new($err_t, format!("{err} ({strerror})"))
        }
    };

    ($err_t:expr, $($arg:expr),*) => {
        Error::new($err_t, format!($($arg),*))
    };
}

Version data entries

115 entries across 115 versions & 2 rubygems

Version Path
vinted-prometheus-client-mmap-1.7.0 ext/fast_mmaped_file_rs/src/macros.rs
vinted-prometheus-client-mmap-1.7.0-x86_64-linux ext/fast_mmaped_file_rs/src/macros.rs
vinted-prometheus-client-mmap-1.6.0 ext/fast_mmaped_file_rs/src/macros.rs
vinted-prometheus-client-mmap-1.6.0-x86_64-linux ext/fast_mmaped_file_rs/src/macros.rs
vinted-prometheus-client-mmap-1.5.0-x86_64-linux ext/fast_mmaped_file_rs/src/macros.rs
vinted-prometheus-client-mmap-1.4.0 ext/fast_mmaped_file_rs/src/macros.rs
vinted-prometheus-client-mmap-1.3.0 ext/fast_mmaped_file_rs/src/macros.rs
vinted-prometheus-client-mmap-1.2.2 ext/fast_mmaped_file_rs/src/macros.rs
vinted-prometheus-client-mmap-1.2.1 ext/fast_mmaped_file_rs/src/macros.rs
prometheus-client-mmap-1.1.1 ext/fast_mmaped_file_rs/src/macros.rs
prometheus-client-mmap-1.1.1-x86_64-linux ext/fast_mmaped_file_rs/src/macros.rs
prometheus-client-mmap-1.1.1-x86_64-darwin ext/fast_mmaped_file_rs/src/macros.rs
prometheus-client-mmap-1.1.1-arm64-darwin ext/fast_mmaped_file_rs/src/macros.rs
prometheus-client-mmap-1.1.1-aarch64-linux ext/fast_mmaped_file_rs/src/macros.rs
prometheus-client-mmap-1.1.0 ext/fast_mmaped_file_rs/src/macros.rs
prometheus-client-mmap-1.1.0-x86_64-linux ext/fast_mmaped_file_rs/src/macros.rs
prometheus-client-mmap-1.1.0-x86_64-darwin ext/fast_mmaped_file_rs/src/macros.rs
prometheus-client-mmap-1.1.0-arm64-darwin ext/fast_mmaped_file_rs/src/macros.rs
prometheus-client-mmap-1.1.0-aarch64-linux ext/fast_mmaped_file_rs/src/macros.rs
prometheus-client-mmap-1.0.3 ext/fast_mmaped_file_rs/src/macros.rs