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

chore: clippy #1106

Merged
merged 8 commits into from
Jan 27, 2023
Merged

chore: clippy #1106

merged 8 commits into from
Jan 27, 2023

Conversation

roeap
Copy link
Collaborator

@roeap roeap commented Jan 27, 2023

Description

The latest rust release comes with new more opinionated clippy :). This PR fixes the new clippy errors and and runs cargo clippy --fix on all our crates.

Related Issue(s)

Documentation

Comment on lines 61 to 62
#[from]
stats: serde_json::Error,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the only manual change. Clippy was complaining that the error variant was much larger then all the others. I felt forwarding the error rather then the actual data that caused the error is a reasonable change.

Copy link
Collaborator

Choose a reason for hiding this comment

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

That seems fair. The other option is to Box the Stats, but I think the serde_json error should be sufficient.

Could we update the doc comment above, though?

Copy link
Collaborator Author

@roeap roeap Jan 27, 2023

Choose a reason for hiding this comment

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

Of course! Going forward we way consider lifting the docs requirement for error variants. I feel the error description text and variant name are usually expressive enough.

@roeap roeap merged commit c41c0fe into delta-io:main Jan 27, 2023
@roeap roeap deleted the clippy branch January 27, 2023 20:10
chitralverma pushed a commit to chitralverma/delta-rs that referenced this pull request Mar 17, 2023
# Description

The latest rust release comes with new more opinionated clippy :). This
PR fixes the new clippy errors and and runs `cargo clippy --fix` on all
our crates.

# Related Issue(s)
<!---
For example:

- closes delta-io#106
--->

# Documentation

<!---
Share links to useful documentation
--->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/python Issues for the Python package binding/rust Issues for the Rust crate delta-inspect rust
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants