Closed SomeoneToIgnore closed 1 year ago
Ran cargo clippy and fixed most of the issues that appeared. Main ones:
cargo clippy
null_ptr
is_null_ptr
match
if let
as
offset
add
.into()
unsafe { *playdate }
More warnings are left still, but this looks like a good start.
Ran
cargo clippy
and fixed most of the issues that appeared. Main ones:null_ptr
comparison can be replaced withis_null_ptr
match
over one variant could be replaced withif let
as
conversions were either redundant or could be replaced (as withoffset
->add
), same with.into()
unsafe { *playdate }
extracted into one call in the method, to reduce the amount of errorsMore warnings are left still, but this looks like a good start.