svartalf / rust-battery

Rust crate providing cross-platform information about the notebook batteries.
https://crates.io/crates/battery
Apache License 2.0
354 stars 40 forks source link

__Nonexhaustive in State #64

Closed lucassardois closed 3 years ago

lucassardois commented 4 years ago

While browsing the source code I found this: https://docs.rs/battery/0.7.5/src/battery/types/state.rs.html#10-20

And more precisely this:

    // Awaiting for https://github.com/rust-lang/rust/issues/44109
    #[doc(hidden)]
    __Nonexhaustive,

It seems that the referenced issue has been closed. Is the __Nonexhaustive field still needed?

svartalf commented 4 years ago

#[non_exhaustive] attribute appeared in Rust 1.40.0 first, while this crate support Rust 1.36.0+ right now, therefore it is impossible to use it yet.