From a154e45cce79b0c2264c1e1cd37a3d1bf5bc6154 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 5 Jan 2023 17:29:14 -0500 Subject: Rust API: Lots and lots of clippy changes --- rust/src/llil/instruction.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/llil/instruction.rs') 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, }; -- cgit v1.3.1