Skip to content

Build failure due to attributes on if expressions #49

Closed
@brianclinkenbeard

Description

@brianclinkenbeard
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions