File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ impl Iterator for HighLevelILBlockIter {
1616 fn next ( & mut self ) -> Option < Self :: Item > {
1717 self . range
1818 . next ( )
19- . map ( |i| HighLevelInstructionIndex ( i ) )
19+ . map ( HighLevelInstructionIndex )
2020 // TODO: Is this already MAPPED>!>?!? If so we map twice that is BAD!!!!
2121 . and_then ( |i| self . function . instruction_from_index ( i) )
2222 }
Original file line number Diff line number Diff line change 4242 fn next ( & mut self ) -> Option < Self :: Item > {
4343 self . range
4444 . next ( )
45- . map ( |idx| LowLevelInstructionIndex ( idx ) )
45+ . map ( LowLevelInstructionIndex )
4646 . and_then ( |idx| self . function . instruction_from_index ( idx) )
4747 }
4848}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ impl Iterator for MediumLevelILBlockIter {
5555 fn next ( & mut self ) -> Option < Self :: Item > {
5656 self . range
5757 . next ( )
58- . map ( |i| MediumLevelInstructionIndex ( i ) )
58+ . map ( MediumLevelInstructionIndex )
5959 // TODO: What if this is already mapped!?!?!? we will map twice!?!?!?
6060 . and_then ( |i| self . function . instruction_from_index ( i) )
6161 }
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ impl<F: ILFunction + RefCountable> Iterator for OperandExprIter<F> {
188188 fn next ( & mut self ) -> Option < Self :: Item > {
189189 self . 0
190190 . next ( )
191- . map ( |i| F :: InstructionIndex :: from ( i ) )
191+ . map ( F :: InstructionIndex :: from)
192192 . map ( |idx| self . 0 . function . il_instruction_from_index ( idx) )
193193 }
194194}
You can’t perform that action at this time.
0 commit comments