diff options
author | Jimmy Miller <jimmy.miller@shopify.com> | 2022-09-30 10:14:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 11:14:55 -0400 |
commit | 31461c7e0eab4963ccc8649ea8ebf27979132c0c (patch) | |
tree | 69a0378ba20e47c085928ede356431a65d8e60c3 /yjit/src/backend/tests.rs | |
parent | ad651925e365ca18645f05b5e9b2eca9cd5721bc (diff) |
A bunch of clippy auto fixes for yjit (#6476)
Notes
Notes:
Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'yjit/src/backend/tests.rs')
-rw-r--r-- | yjit/src/backend/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit/src/backend/tests.rs b/yjit/src/backend/tests.rs index 08e8849b4d..16f9375ba4 100644 --- a/yjit/src/backend/tests.rs +++ b/yjit/src/backend/tests.rs @@ -29,11 +29,11 @@ fn guard_object_is_heap( asm.comment("guard object is heap"); // Test that the object is not an immediate - asm.test(object_opnd.clone(), Opnd::UImm(RUBY_IMMEDIATE_MASK as u64)); + asm.test(object_opnd, Opnd::UImm(RUBY_IMMEDIATE_MASK as u64)); asm.jnz(Target::CodePtr(side_exit)); // Test that the object is not false or nil - asm.cmp(object_opnd.clone(), Opnd::UImm(Qnil.into())); + asm.cmp(object_opnd, Opnd::UImm(Qnil.into())); asm.jbe(Target::CodePtr(side_exit)); } |