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

Macro triggers unused_qualifications lint #91

Closed
SeeSpring opened this issue Jun 15, 2020 · 1 comment · Fixed by #92
Closed

Macro triggers unused_qualifications lint #91

SeeSpring opened this issue Jun 15, 2020 · 1 comment · Fixed by #92

Comments

@SeeSpring
Copy link

#![warn(unused_qualifications)]
use std::error::Error;
fn main() -> Result<(), Box<dyn Error>> {
    Ok(())
}
#[derive(Debug, thiserror::Error)]
#[error("err")]
pub struct MyError;

triggers this warning:

warning: unnecessary qualification
 --> src\main.rs:8:1
  |
8 | pub struct MyError;
  | ^^^^^^^^^^^^^^^^^^
  |
note: the lint level is defined here
 --> src\main.rs:1:9
  |
1 | #![warn(unused_qualifications)]
  |         ^^^^^^^^^^^^^^^^^^^^^

warning: 1 warning emitted
@dtolnay
Copy link
Owner

dtolnay commented Jun 15, 2020

Thanks, fixed in 1.0.20.

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

Successfully merging a pull request may close this issue.

2 participants