From 5e6df9a25be0523256abd45483603e334289aed3 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Thu, 7 Dec 2023 21:58:29 +0100 Subject: clippy: fix some clippy lints --- examples/add.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/add.rs b/examples/add.rs index ba887c4..6935803 100644 --- a/examples/add.rs +++ b/examples/add.rs @@ -21,9 +21,9 @@ fn main() { // rdi -> first argument // rsi -> second argument // rax -> return value - // + asm.mov(rsi, Imm64::from(42)); - asm.mov(rax, Imm64::from(add as u64)); + asm.mov(rax, Imm64::from(add as usize)); asm.call(rax); asm.ret(); -- cgit v1.2.3