j4rs icon indicating copy to clipboard operation
j4rs copied to clipboard

Fix clippy errors

Open rukai opened this issue 1 year ago • 0 comments

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

image 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 image 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.

rukai avatar Feb 29 '24 04:02 rukai