jD91mZM2 / xidlehook

GitLab: https://gitlab.com/jD91mZM2/xidlehook
MIT License
382 stars 33 forks source link

Build failure due to attributes on if expressions #49

Closed brianclinkenbeard closed 4 years ago

brianclinkenbeard commented 4 years ago
Compiling xidlehook-core v0.2.0 (/home/brian/documents/projects/xidlehook/xidlehook-core)
error: attributes are not yet allowed on `if` expressions
   --> xidlehook-core/src/lib.rs:474:21
    |
474 |                     #[cfg(feature = "tokio")]
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: attributes are not yet allowed on `if` expressions
   --> xidlehook-core/src/lib.rs:484:21
    |
484 |                     #[cfg(feature = "tokio")]
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

error: could not compile `xidlehook-core`.

rustc version: 1.42.0 Perhaps rust-lang/rust#69201 has something to do with this?

jD91mZM2 commented 4 years ago

Try updating rust?

brianclinkenbeard commented 4 years ago

rustc 1.43 solved the issue. :tada: