You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report! PyO3 places this default into a closure in the generated code, so the lint is correctly identifying a case which looks like it could technically be reduced if handwritten. In practice I think there's not much we can do except silence the warning, which #2990 implements.
Bug Description
Clippy produces weird warning when vec is used in signature. Moreover it is impossible to turn that warning off at the level of the function.
Steps to Reproduce
Put the code above in a new binary or lib crate and run
cargo clippy
.You should see a warning like this:
Backtrace
No response
Your operating system and version
Ubuntu 22.04
Your Python version (
python --version
)Python 3.10.6
Your Rust version (
rustc --version
)rustc 1.67.1 (d5a82bbd2 2023-02-07)
Your PyO3 version
0.18.1
How did you install python? Did you use a virtualenv?
I think it came with Ubuntu.
Yes.
Additional Info
No response
The text was updated successfully, but these errors were encountered: