diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-12-07 21:58:29 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-12-07 21:58:29 +0100 |
commit | 5e6df9a25be0523256abd45483603e334289aed3 (patch) | |
tree | 6703536819e0cc4078e42ca75bc64842ab9cdf2b /examples/add.rs | |
parent | 5c18f9267329e8eded611a830458ec07115e5670 (diff) | |
download | juicebox-asm-5e6df9a25be0523256abd45483603e334289aed3.tar.gz juicebox-asm-5e6df9a25be0523256abd45483603e334289aed3.zip |
clippy: fix some clippy lints
Diffstat (limited to 'examples/add.rs')
-rw-r--r-- | examples/add.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |