diff options
author | Jimmy Miller <jimmy.miller@shopify.com> | 2022-10-13 18:20:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-13 18:20:04 -0400 |
commit | 3c0b4ef1a2a972d5b0b723b82538fc8f40d85f32 (patch) | |
tree | 039f2b1363f87f278bf6c49a2d1958ecd581371e /yjit/src/asm | |
parent | 93a87f4963703a709bf974c48f76a5503f31f53f (diff) | |
download | ruby-3c0b4ef1a2a972d5b0b723b82538fc8f40d85f32.tar.gz |
fixes more clippy warnings (#6543)
* fixes more clippy warnings
* Fix x86 c_callable to have doc_strings
Diffstat (limited to 'yjit/src/asm')
-rw-r--r-- | yjit/src/asm/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit/src/asm/mod.rs b/yjit/src/asm/mod.rs index 2bc83ec059..8356201ba6 100644 --- a/yjit/src/asm/mod.rs +++ b/yjit/src/asm/mod.rs @@ -300,7 +300,7 @@ impl CodeBlock { } /// Produce hex string output from the bytes in a code block -impl<'a> fmt::LowerHex for CodeBlock { +impl fmt::LowerHex for CodeBlock { fn fmt(&self, fmtr: &mut fmt::Formatter) -> fmt::Result { for pos in 0..self.write_pos { let byte = unsafe { self.mem_block.start_ptr().raw_ptr().add(pos).read() }; @@ -393,7 +393,7 @@ mod tests assert_eq!(uimm_num_bits(((u16::MAX as u32) + 1).into()), 32); assert_eq!(uimm_num_bits(u32::MAX.into()), 32); - assert_eq!(uimm_num_bits(((u32::MAX as u64) + 1)), 64); + assert_eq!(uimm_num_bits((u32::MAX as u64) + 1), 64); assert_eq!(uimm_num_bits(u64::MAX), 64); } } |