Skip to content
New issue

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

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

Already on GitHub? # to your account

new wildcard_import clippy warning from #[pyclass] on main #4701

Closed
davidhewitt opened this issue Nov 13, 2024 · 0 comments · Fixed by #4707
Closed

new wildcard_import clippy warning from #[pyclass] on main #4701

davidhewitt opened this issue Nov 13, 2024 · 0 comments · Fixed by #4707

Comments

@davidhewitt
Copy link
Member

This code is failing clippy on main, is fine on 0.22.

#![deny(clippy::pedantic, clippy::all)]

#[pyo3::pymodule]
mod pyo3_scratch {
    use pyo3::prelude::*;

    #[pyclass]
    pub struct Foo {}
}
error: usage of wildcard import
 --> src/lib.rs:7:5
  |
7 |       #[pyclass]
  |       ^---------
  |       |
  |  _____in this procedural macro expansion
  | |
8 | |     pub struct Foo {}
  | |__________________^
  |

... it's probably another similar case to #4663

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

Successfully merging a pull request may close this issue.

1 participant