-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix new clippy lints from Rust 1.89 #8078
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
Conversation
| .unwrap() | ||
| .to_string(); | ||
| let pretty = | ||
| pretty_format_columns_with_options("pretty", std::slice::from_ref(&array), &opts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoiding the clone seems good to me
| #[allow(clippy::redundant_static_lifetimes)] | ||
| #[allow(clippy::redundant_field_names)] | ||
| #[allow(non_camel_case_types)] | ||
| #[allow(mismatched_lifetime_syntaxes)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this lint is ignored because this is all generated code
| assert_eq!(sync_buffer, async_buffer); | ||
| } | ||
|
|
||
| struct TestAsyncSink { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clippy now notices this is dead code
timsaucer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing the update!
|
Looks good to me, I noticed these lifetime recommendations earlier when testing the beta release. |
|
Thanks @timsaucer and @jhorstmann |
|
BTW @EricccTaiwan and I have a PR to explicitly specify the rust-toolchain to have a consistent build: |
Which issue does this PR close?
Rationale for this change
Clippy is failing on main. Here is an example
Rust 1.89 was released today and it includes a new clippy version that
is more strict about some lints: https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/
What changes are included in this PR?
Fix clippy lints to make CI pass with Rust 1.89
Are these changes tested?
By CI
Are there any user-facing changes?