j4rs
j4rs copied to clipboard
Fix clippy errors
This fixes all of the clippy errors on the repo, there are still 258 clippy warnings left, but the errors represent more serious issues so I sought to resolve them before the warnings.
Issue 1
The
1_32 constants look like they were meant to be 1_i32, so I changed them.
Issue 2
All the unsafe changes are due to
There is no way for a function to be sound if it dereferences an arbitrary pointer provided via the public interface, so I fixed this issue by marking the functions as unsafe.