Skip to content

Commit 3eb49e7

Browse files
eduardosmAmanieu
authored andcommitted
Convert while loop to for
1 parent 1754913 commit 3eb49e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/stdarch-test/src/disassembly.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fn parse(output: &str) -> HashSet<Function> {
126126
let symbol = normalize(header);
127127
eprintln!("normalized symbol: {symbol}");
128128
let mut instructions = Vec::new();
129-
while let Some(instruction) = lines.next() {
129+
for instruction in lines.by_ref() {
130130
if instruction.ends_with(':') {
131131
cached_header = Some(instruction);
132132
break;

0 commit comments

Comments
 (0)