-
Notifications
You must be signed in to change notification settings - Fork 960
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
@@ -485,6 +485,7 @@ impl<K: ArrowDictionaryKeyType> DictionaryArray<K> { | |||
|
|||
/// 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
@@ -112,6 +112,7 @@ static TABLES: Lazy<Vec<&'static str>> = Lazy::new(|| vec!["flight_sql.example.t | |||
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
@@ -76,7 +76,7 @@ pub async fn run_scenario(host: &str, port: u16) -> Result { | |||
Ok(()) | |||
} | |||
|
|||
#[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
@@ -702,24 +702,21 @@ mod lz4_hadoop_codec { | |||
input_len -= PREFIX_LEN; | |||
|
|||
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
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 update
and fix all clippy errorsAre there any user-facing changes?
No, this is all internal changes