Skip to content
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

Fix cargo clippy issues 0.1.65 in Rust #923

Merged
merged 3 commits into from
Nov 9, 2022

Conversation

fvaleye
Copy link
Collaborator

@fvaleye fvaleye commented Nov 7, 2022

Description

  • Fix the latest cargo clippy issues in Rust from the version 0.1.65

@fvaleye fvaleye added the binding/rust Issues for the Rust crate label Nov 7, 2022
@fvaleye
Copy link
Collaborator Author

fvaleye commented Nov 8, 2022

To track the issue with the v1.65.0 Rust version with windows-latest on the CI , more information: rust-lang/cargo#11347

@@ -31,7 +31,7 @@ pub type MinAndMaxValues = (
pub(crate) fn apply_null_counts(
array: &StructArray,
null_counts: &mut HashMap<String, ColumnCountStat>,
nest_level: i32,
_nest_level: i32,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one surprises me to see @fvaleye since the nest_level variable does get used within the function body 😕

Copy link
Collaborator Author

@fvaleye fvaleye Nov 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good point @rtyler, I was also surprised to see clippy raising an error on this one... I'll take a closer look.

Copy link
Collaborator Author

@fvaleye fvaleye Nov 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI

76 | #![deny(warnings)]
   |         ^^^^^^^^
   = note: `#[deny(clippy::only_used_in_recursion)]` implied by `#[deny(warnings)]`
note: parameter used here
  --> rust/src/writer/stats.rs:57:77

@fvaleye fvaleye merged commit 5618cb3 into delta-io:main Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants