Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Aug 7, 2025

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?

@github-actions github-actions bot added parquet Changes to the parquet crate arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate labels Aug 7, 2025
.unwrap()
.to_string();
let pretty =
pretty_format_columns_with_options("pretty", std::slice::from_ref(&array), &opts)
Copy link
Contributor Author

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)]
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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

Copy link
Member

@timsaucer timsaucer left a 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!

@jhorstmann
Copy link
Contributor

Looks good to me, I noticed these lifetime recommendations earlier when testing the beta release.

@alamb
Copy link
Contributor Author

alamb commented Aug 7, 2025

Thanks @timsaucer and @jhorstmann

@alamb alamb merged commit e845411 into apache:main Aug 7, 2025
33 checks passed
@alamb alamb deleted the alamb/fix_clippy branch August 7, 2025 15:25
@alamb
Copy link
Contributor Author

alamb commented Aug 7, 2025

BTW @EricccTaiwan and I have a PR to explicitly specify the rust-toolchain to have a consistent build:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants