forked from poljar/weechat-matrix-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove #[used] from non-static fields
Rust 1.51 has a regression restricting the `#[used]` attribute[0] to static fields. As such, it's not possible to build `weechat-matrix-rs` on stable or nightly Rust. According to the `#[used]` RFC[1], the attribute is for static variables so it's unclear if the new behavior is the correct one. However, to prevent clippy from complaining during CI, replace with `#[allow(dead_code)]` [0] rust-lang/rust#82668 [1] https://rust-lang.github.io/rfcs/2386-used.html
- Loading branch information
1 parent
7782dda
commit cab463f
Showing
3 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters