Skip to content

fix: clippy warnings #3390

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

Merged
merged 1 commit into from
Apr 16, 2025
Merged

fix: clippy warnings #3390

merged 1 commit into from
Apr 16, 2025

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Apr 16, 2025

Description

I would like to get a clean clippy run, to make it easier to find what deprecated APIs I need to update when upgrading to DataFusion 47:

I ran this command:

cargo clippy --all-features --all-targets

And basically did what clippy told me. I am happy to add a check for clippy to the CI as well, but figured that might be better as a follow on PR if you would like it.

Related Issue(s)

Documentation

@github-actions github-actions bot added the binding/rust Issues for the Rust crate label Apr 16, 2025
Copy link

ACTION NEEDED

delta-rs follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

@@ -28,6 +28,7 @@ impl AsyncShareableBuffer {
}

/// Returns a clone of the underlying buffer as a `Vec`.
#[allow(dead_code)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

some of these things that clippy claims were dead seemed important so I didn't actually removed them, I just added an allow.

I am happy to remove them too if you prefer

@alamb alamb changed the title fix: Fix Clippy warnings fix: Fix clippy warnings Apr 16, 2025
@alamb alamb changed the title fix: Fix clippy warnings fix: fix clippy warnings Apr 16, 2025
@alamb alamb changed the title fix: fix clippy warnings fix: clippy warnings Apr 16, 2025
Signed-off-by: Andrew Lamb <[email protected]>
@alamb alamb marked this pull request as ready for review April 16, 2025 20:40
Copy link
Collaborator

@roeap roeap left a comment

Choose a reason for hiding this comment

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

LGTM!

@roeap roeap enabled auto-merge April 16, 2025 20:42
Copy link

codecov bot commented Apr 16, 2025

Codecov Report

Attention: Patch coverage is 48.14815% with 14 lines in your changes missing coverage. Please review.

Project coverage is 71.91%. Comparing base (b2dd8fa) to head (42e3aae).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/core/src/logstore/config.rs 50.00% 7 Missing ⚠️
crates/core/src/logstore/mod.rs 0.00% 1 Missing and 2 partials ⚠️
crates/catalog-unity/src/lib.rs 0.00% 1 Missing ⚠️
crates/core/src/logstore/storage/runtime.rs 0.00% 1 Missing ⚠️
crates/lakefs/src/lib.rs 0.00% 0 Missing and 1 partial ⚠️
crates/mount/src/lib.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3390      +/-   ##
==========================================
+ Coverage   71.88%   71.91%   +0.02%     
==========================================
  Files         147      147              
  Lines       45848    45840       -8     
  Branches    45848    45840       -8     
==========================================
+ Hits        32960    32966       +6     
+ Misses      10784    10777       -7     
+ Partials     2104     2097       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ion-elgreco
Copy link
Collaborator

LGTM!

Ship it:p

@roeap roeap added this pull request to the merge queue Apr 16, 2025
Merged via the queue into delta-io:main with commit 41b4265 Apr 16, 2025
26 checks passed
@alamb alamb deleted the alamb/clippy branch April 16, 2025 23:35
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