aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-07 21:58:29 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-07 21:58:29 +0100
commit5e6df9a25be0523256abd45483603e334289aed3 (patch)
tree6703536819e0cc4078e42ca75bc64842ab9cdf2b /examples
parent5c18f9267329e8eded611a830458ec07115e5670 (diff)
downloadjuicebox-asm-5e6df9a25be0523256abd45483603e334289aed3.tar.gz
juicebox-asm-5e6df9a25be0523256abd45483603e334289aed3.zip
clippy: fix some clippy lints
Diffstat (limited to 'examples')
-rw-r--r--examples/add.rs4
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();