Project

General

Profile

« Previous | Next » 

Revision 32374b70

Added by aidenfoxivey (Aiden Fox Ivey) 2 months ago

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.

  • Use slice notation in lieu of Vec

https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg

  • Simplify match statement