summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-05-07 00:15:35 -0700
committeriximeow <me@iximeow.net>2021-05-07 00:16:29 -0700
commit5a1b45e729ecebba3eac45e45bf3c4d9077dfc33 (patch)
tree295499c7d9e20ee025793269d5e6a844d841e791
parent2b33746fd0f947b0343981941cc49f59e88daa4b (diff)
update yaxpeax-arch to 0.0.5 and fix some warnings0.0.4
-rw-r--r--Cargo.toml4
-rw-r--r--src/display.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 5bb0f5e..061056b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,14 +1,14 @@
[package]
name = "yaxpeax-pic18"
-version = "0.0.3"
+version = "0.0.4"
authors = [ "iximeow <me@iximeow.net>" ]
license = "0BSD"
repository = "http://git.iximeow.net/yaxpeax-pic18/"
description = "pic18 decoders for the yaxpeax project"
[dependencies]
-yaxpeax-arch = { version = "0.0.4", default-features = false, features = [] }
+yaxpeax-arch = { version = "0.0.5", default-features = false, features = [] }
"serde" = { version = "1.0", optional = true }
"serde_derive" = { version = "1.0", optional = true }
diff --git a/src/display.rs b/src/display.rs
index 80b9b70..cbcab0a 100644
--- a/src/display.rs
+++ b/src/display.rs
@@ -128,7 +128,7 @@ impl Display for Operand {
} else {
write!(f, "[{}]", consts::named_file(
if *file < 0x80 {
- (*file as u16)
+ *file as u16
} else {
(*file as u16) | 0xf00u16
})
@@ -150,7 +150,7 @@ impl Display for Operand {
} else {
write!(f, "[{}]", consts::named_file(
if *file < 0x80 {
- (*file as u16)
+ *file as u16
} else {
(*file as u16) | 0xf00u16
})