-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Redundant Import Warning on Diesel Items #5154
Comments
Needs a macro check. cc @xiongmao86 |
|
It's about this PR: #5058 |
Oh, sorry, I mixed it up. I’ll take a look. |
I think it probably needs a |
I'd allow this also in internal macros. So just |
Thank you for the tip, @flip1995, do we have to add a test in this case? |
Yeah, should be a pretty small test case though. just a macro definition and calling this macro: macro_rules! m {
() => {
use ident;
};
}
m!() |
My laptop is broken. It would take me at least a couple of days to setup an new enviroment. So I won't reply immediately. If anyone is interesting in this, please take it. |
@xiongmao86 Sorry for the steal! I'd like to include a fix for this to next clippy up since it's noisy in some environment. |
@JohnTitor It is no problem, you are welcome to take it. |
I'm currently running Clippy against a project I've made using Rocket and Diesel, and I'm getting redundant import warnings, specifically against items from Diesel.
I could somehow be misunderstanding, but I'm not sure how a derived attribute could be a redundant import, nor how the schema could be. I stepped away from working on this project for a few months, so I'm not sure when this started, as I only updated all of my tools today.
As requested, Clippy version:
clippy 0.0.212 (ea85b4c 2020-02-01)
The text was updated successfully, but these errors were encountered: