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 warnings introduced by Rust/Clippy 1.57.0 #992

Merged
merged 5 commits into from
Dec 3, 2021

Conversation

carols10cents
Copy link
Contributor

Which issue does this PR close?

Closes #991.

Rationale for this change

Upgrading is great! Passing CI is great!

What changes are included in this PR?

I've fixed a number of new warnings. The only one I chose to allow is a new one for a field that's unread, and I'm not sure if that's on purpose or not.

Are there any user-facing changes?

Shouldn't be!

@github-actions github-actions bot added arrow Changes to the arrow crate parquet Changes to the parquet crate parquet-derive labels Dec 2, 2021
@codecov-commenter
Copy link

codecov-commenter commented Dec 2, 2021

Codecov Report

Merging #992 (48b37a5) into master (e9be49d) will decrease coverage by 0.01%.
The diff coverage is 69.44%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #992      +/-   ##
==========================================
- Coverage   82.31%   82.29%   -0.02%     
==========================================
  Files         168      168              
  Lines       48763    48761       -2     
==========================================
- Hits        40139    40128      -11     
- Misses       8624     8633       +9     
Impacted Files Coverage Δ
arrow/src/compute/kernels/take.rs 95.21% <ø> (-0.01%) ⬇️
arrow/src/datatypes/field.rs 53.68% <0.00%> (ø)
...ng/src/flight_server_scenarios/auth_basic_proto.rs 0.00% <ø> (ø)
parquet/src/record/reader.rs 89.83% <0.00%> (-0.63%) ⬇️
arrow/src/array/equal/utils.rs 74.00% <33.33%> (ø)
arrow/src/array/transform/boolean.rs 76.92% <100.00%> (ø)
arrow/src/compute/util.rs 98.90% <100.00%> (ø)
arrow/src/datatypes/schema.rs 66.66% <100.00%> (-0.27%) ⬇️
arrow/src/ipc/writer.rs 84.12% <100.00%> (ø)
parquet/src/arrow/arrow_writer.rs 98.06% <100.00%> (ø)
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9be49d...48b37a5. Read the comment docs.

@Dandandan
Copy link
Contributor

Thanks @carols10cents for the quick fix. Could you run fmt too to fix the formatting errors?

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

@alamb alamb merged commit 9fb2a5f into apache:master Dec 3, 2021
alamb pushed a commit that referenced this pull request Dec 4, 2021
* Remove needless borrows identified by clippy

https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

* Remove muts that are no longer needed

* Derive Default instead of using an equivalent manual impl

Identified by clippy.

https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls

* Remove redundant closures

Identified by clippy.

https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

* Allow dead code on a field Rust now identifies as never read
alamb added a commit that referenced this pull request Dec 5, 2021
…elease (#1004)

* Fix warnings introduced by Rust/Clippy 1.57.0 (#992)

* Remove needless borrows identified by clippy

https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

* Remove muts that are no longer needed

* Derive Default instead of using an equivalent manual impl

Identified by clippy.

https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls

* Remove redundant closures

Identified by clippy.

https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

* Allow dead code on a field Rust now identifies as never read

* Add some extra drops to make it clear what we want to do

Co-authored-by: Carol (Nichols || Goulding) <[email protected]>
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 parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Rust is out; new warnings are breaking Clippy CI job
5 participants