We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When annotating a method with pyo3(signature = (...)), clippy complains and I don’t see a way to turn it off:
pyo3(signature = (...))
#[pymethods] impl Pen { #[new] #[pyo3(signature = ( color=Default::default(), ... ))] fn new( color: Rgba, ... ) -> Self { ... } }
error: redundant closure --> src/xdot_parse/draw.rs:42:15 | 42 | color=Default::default(), | _______________^ ... | 50 | | fn new( 51 | | color: Rgba, | |___________________^ help: replace the closure with the function itself: `Default::default` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `-D clippy::redundant-closure` implied by `-D warnings`
OS: Arch Linux python --version: 3.10.9 rustc --version: 1.68.2 PyO3: 0.18.1 Python installation: pacman
python --version
rustc --version
pacman
The text was updated successfully, but these errors were encountered:
This was fixed in #2990 / 0.18.2. Please retry with an up to date version.
Sorry, something went wrong.
No branches or pull requests
Bug Description
When annotating a method with
pyo3(signature = (...))
, clippy complains and I don’t see a way to turn it off:Steps to Reproduce
Backtrace
OS: Arch Linux
python --version
: 3.10.9rustc --version
: 1.68.2PyO3: 0.18.1
Python installation:
pacman
The text was updated successfully, but these errors were encountered: