Closed S-Erik closed 1 year ago
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
Thanks a lot!! I wasn't aware that From was preferred, its good to know.
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