summaryrefslogtreecommitdiff
path: root/rust/src/llil/operation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/llil/operation.rs')
-rw-r--r--rust/src/llil/operation.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/llil/operation.rs b/rust/src/llil/operation.rs
index 4daa7cb2..f90fafd8 100644
--- a/rust/src/llil/operation.rs
+++ b/rust/src/llil/operation.rs
@@ -124,7 +124,7 @@ where
.arch()
.register_from_id(raw_id)
.map(Register::ArchReg)
- .unwrap_or({
+ .unwrap_or_else(|| {
error!(
"got garbage register from LLIL_SET_REG @ 0x{:x}",
self.op.address
@@ -163,7 +163,7 @@ where
.arch()
.register_from_id(raw_id)
.map(Register::ArchReg)
- .unwrap_or({
+ .unwrap_or_else(|| {
error!(
"got garbage register from LLIL_SET_REG_SPLIT @ 0x{:x}",
self.op.address
@@ -184,7 +184,7 @@ where
.arch()
.register_from_id(raw_id)
.map(Register::ArchReg)
- .unwrap_or({
+ .unwrap_or_else(|| {
error!(
"got garbage register from LLIL_SET_REG_SPLIT @ 0x{:x}",
self.op.address
@@ -277,7 +277,7 @@ where
.arch()
.register_from_id(raw_id)
.map(Register::ArchReg)
- .unwrap_or({
+ .unwrap_or_else(|| {
error!(
"got garbage register from LLIL_REG @ 0x{:x}",
self.op.address