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

Apply suggestions from Clippy #20

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

clubby789
Copy link
Contributor

@clubby789 clubby789 commented May 17, 2022

This PR:

  • Introduces an IdError type to explain invalid names
  • Uses chars instead of 1-length strings
  • Removes uncessary references
  • Implement From instead of Into

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
/// Arrow constructor which returns a default arrow
pub fn default() -> Arrow {
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 lints against fn default() -> Self not in a Default implementation. While the crate is pre-1.0 and this is very unlikely to affect anyone, this is technically a breaking change, so I can revert if you'd prefer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants