Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitflags crate is using deprecated try macro #48

Open
johalun opened this issue Nov 1, 2021 · 1 comment
Open

bitflags crate is using deprecated try macro #48

johalun opened this issue Nov 1, 2021 · 1 comment

Comments

@johalun
Copy link
Owner

johalun commented Nov 1, 2021

Compile warning on Linux. Look into if we need a newer version of bitflags.

warning: use of deprecated macro `try`: use the `?` operator instead
  --> src/ctl_flags.rs:6:1
   |
6  | / bitflags! {
7  | |     pub struct CtlFlags : libc::c_uint {
8  | |         /// Allow reads of variable
9  | |         const RD = CTLFLAG_RD;
...  |
69 | |     }
70 | | }
   | |_^
   |
   = note: `#[warn(deprecated)]` on by default
   = note: this warning originates in the macro `__impl_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
@asomers
Copy link
Contributor

asomers commented Nov 25, 2022

I can't reproduce this. Maybe bitflags fixed it upstream?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants