summaryrefslogtreecommitdiff
path: root/rust/src/llil/instruction.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/instruction.rs
parent52edc39a7081fd6662e14fbcd473adabbbc36c7a (diff)
Rust API: Lots and lots of clippy changes
Diffstat (limited to 'rust/src/llil/instruction.rs')
-rw-r--r--rust/src/llil/instruction.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/llil/instruction.rs b/rust/src/llil/instruction.rs
index ad7ce274..20cc545b 100644
--- a/rust/src/llil/instruction.rs
+++ b/rust/src/llil/instruction.rs
@@ -115,13 +115,13 @@ where
}
LLIL_SYSCALL => InstrInfo::Syscall(Operation::new(self.function, op)),
_ => {
- common_info(self.function, op).unwrap_or_else(|| {
+ common_info(self.function, op).unwrap_or({
// Hopefully this is a bare value. If it isn't (expression
// from wrong function form or similar) it won't really cause
// any problems as it'll come back as undefined when queried.
let expr = Expression {
function: self.function,
- expr_idx: expr_idx,
+ expr_idx,
_ty: PhantomData,
};