Skip to content

Commit

Permalink
Misc clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
emesare committed Jan 17, 2025
1 parent 02f6be8 commit 6405576
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rust/src/hlil/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl Iterator for HighLevelILBlockIter {
fn next(&mut self) -> Option<Self::Item> {
self.range
.next()
.map(|i| HighLevelInstructionIndex(i))
.map(HighLevelInstructionIndex)
// TODO: Is this already MAPPED>!>?!? If so we map twice that is BAD!!!!
.and_then(|i| self.function.instruction_from_index(i))
}
Expand Down
2 changes: 1 addition & 1 deletion rust/src/lowlevelil/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ where
fn next(&mut self) -> Option<Self::Item> {
self.range
.next()
.map(|idx| LowLevelInstructionIndex(idx))
.map(LowLevelInstructionIndex)
.and_then(|idx| self.function.instruction_from_index(idx))
}
}
Expand Down
2 changes: 1 addition & 1 deletion rust/src/mlil/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl Iterator for MediumLevelILBlockIter {
fn next(&mut self) -> Option<Self::Item> {
self.range
.next()
.map(|i| MediumLevelInstructionIndex(i))
.map(MediumLevelInstructionIndex)
// TODO: What if this is already mapped!?!?!? we will map twice!?!?!?
.and_then(|i| self.function.instruction_from_index(i))
}
Expand Down
2 changes: 1 addition & 1 deletion rust/src/operand_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl<F: ILFunction + RefCountable> Iterator for OperandExprIter<F> {
fn next(&mut self) -> Option<Self::Item> {
self.0
.next()
.map(|i| F::InstructionIndex::from(i))
.map(F::InstructionIndex::from)
.map(|idx| self.0.function.il_instruction_from_index(idx))
}
}
Expand Down

0 comments on commit 6405576

Please sign in to comment.