-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix Clippy in CI for Rust 1.87 release #7514
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
|
|
||
| /// Returns `PrimitiveDictionaryBuilder` of this dictionary array for mutating | ||
| /// its keys and values if the underlying data buffer is not shared by others. | ||
| #[allow(clippy::result_large_err)] |
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 API purposely returns self on failure, which is large. Thus I ignored the clippy lint
| pub struct FlightSqlServiceImpl {} | ||
|
|
||
| impl FlightSqlServiceImpl { | ||
| #[allow(clippy::result_large_err)] |
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 is an example and follows the example of tonic status
| } | ||
|
|
||
| #[allow(clippy::unnecessary_wraps)] | ||
| #[allow(clippy::result_large_err)] |
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.
seems the previous lint has been fixed but now I need to add a new allow
parquet/src/compression.rs
Outdated
| if input_len < expected_compressed_size as usize { | ||
| return Err(io::Error::new( | ||
| io::ErrorKind::Other, | ||
| return Err(io::Error::other( |
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 told me to do this
crepererum
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.
thank you
|
Thank you for the review @crepererum |
Which issue does this PR close?
Closes #.
Rationale for this change
Rust 1.87 was released today https://releases.rs/docs/1.87.0/ and with it some new clippy lints
Some new clippy failures now happen on main as a result, for example https://github.com/apache/arrow-rs/actions/runs/15054299671/job/42316440085
What changes are included in this PR?
cargo updateand fix all clippy errorsAre there any user-facing changes?
No, this is all internal changes