summaryrefslogtreecommitdiff
path: root/rust/src/llil/operation.rs
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2023-01-05 17:29:14 -0500
committerKyleMiles <krm504@nyu.edu>2023-01-06 16:29:58 -0500
commita154e45cce79b0c2264c1e1cd37a3d1bf5bc6154 (patch)
tree11f436b720edfdf37819e9e83e7131d220687074 /rust/src/llil/operation.rs
parent52edc39a7081fd6662e14fbcd473adabbbc36c7a (diff)
Rust API: Lots and lots of clippy changes
Diffstat (limited to 'rust/src/llil/operation.rs')
-rw-r--r--rust/src/llil/operation.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/rust/src/llil/operation.rs b/rust/src/llil/operation.rs
index f7d59ef6..296a45db 100644
--- a/rust/src/llil/operation.rs
+++ b/rust/src/llil/operation.rs
@@ -40,8 +40,8 @@ where
{
pub(crate) fn new(function: &'func Function<A, M, F>, op: BNLowLevelILInstruction) -> Self {
Self {
- function: function,
- op: op,
+ function,
+ op,
_args: PhantomData,
}
}
@@ -108,7 +108,7 @@ where
.arch()
.register_from_id(raw_id)
.map(Register::ArchReg)
- .unwrap_or_else(|| {
+ .unwrap_or({
error!(
"got garbage register from LLIL_SET_REG @ 0x{:x}",
self.op.address
@@ -151,7 +151,7 @@ where
.arch()
.register_from_id(raw_id)
.map(Register::ArchReg)
- .unwrap_or_else(|| {
+ .unwrap_or({
error!(
"got garbage register from LLIL_SET_REG_SPLIT @ 0x{:x}",
self.op.address
@@ -172,7 +172,7 @@ where
.arch()
.register_from_id(raw_id)
.map(Register::ArchReg)
- .unwrap_or_else(|| {
+ .unwrap_or({
error!(
"got garbage register from LLIL_SET_REG_SPLIT @ 0x{:x}",
self.op.address
@@ -285,7 +285,7 @@ where
.arch()
.register_from_id(raw_id)
.map(Register::ArchReg)
- .unwrap_or_else(|| {
+ .unwrap_or({
error!(
"got garbage register from LLIL_REG @ 0x{:x}",
self.op.address