Add miscellaneous Clippy 'corrections' (https://github.com/Shopify/zjit/pull/92)
Remove redundant statements
Remove .clone() since A64 implements Copy
Remove .clone() since InsnId implements Copy
.
Dereference since *const rb_call_data implements Copy
Remove unnecessary return statement
Remove unnecessary braces
Use .is_empty() over length checks
Remove unnecessary conversion handling
Since i32 can always fit into i64 (the inner type in Opnd::Imm), the conversion is infallibile.
https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
Add miscellaneous Clippy 'corrections' (https://github.com/Shopify/zjit/pull/92)
Remove redundant statements
Remove .clone() since A64 implements Copy
Remove .clone() since InsnId implements Copy
.
Dereference since *const rb_call_data implements Copy
Remove unnecessary return statement
Remove unnecessary braces
Use .is_empty() over length checks
Remove unnecessary conversion handling
Since i32 can always fit into i64 (the inner type in Opnd::Imm), the conversion is infallibile.
https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg