FillZpp / sys-info-rs

Get system information in Rust.
MIT License
168 stars 57 forks source link

fn boottime - expected enum `Result`, found `()` #98

Closed mikeumus closed 3 years ago

mikeumus commented 3 years ago

On latest Rust Nightly:

error[E0308]: mismatched types
   --> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/sys-info-0.9.0/lib.rs:812:22
    |
812 | pub fn boottime() -> Result<timeval, Error> {
    |        --------      ^^^^^^^^^^^^^^^^^^^^^^ expected enum `Result`, found `()`
    |        |
    |        implicitly returns `()` as its body has no tail or `return` expression
    |
    = note:   expected enum `Result<timeval, Error>`
            found unit type `()`

➕ 1️⃣ for 💖GitHub Sponsors and Discussions!