We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the file src/natives.rs the Into trait is implemented for arrays, Vec, Range and string slices.
Clippy suggests that one should always prefer to implement the From trait
because implementing From automatically provides one with an implementation of Into thanks to the blanket implementation in the standard library.
This is also discussed in this Issue in the Clippy Github.
Therefore, I suggest implementing the Into trait instead of the From trait in natives.rs.
A pull request implementing the From trait instead of the Into trait can be found here: #3
The text was updated successfully, but these errors were encountered:
Thanks a lot!! I wasn't aware that From was preferred, its good to know.
Sorry, something went wrong.
No branches or pull requests
In the file src/natives.rs the Into trait is implemented for arrays, Vec, Range and string slices.
Clippy suggests that one should always prefer to implement the From trait
This is also discussed in this Issue in the Clippy Github.
Therefore, I suggest implementing the Into trait instead of the From trait in natives.rs.
A pull request implementing the From trait instead of the Into trait can be found here: #3
The text was updated successfully, but these errors were encountered: