Increment i consistently before asserting it's non-zero

html_output
Wilfred Hughes 2022-02-19 11:04:19 +07:00
parent 69941aecb4
commit 63673c799b
1 changed files with 2 additions and 0 deletions

@ -289,6 +289,7 @@ pub fn neighbours<'a>(v: &Vertex<'a>, buf: &mut [Option<(Edge, Vertex<'a>)>]) {
rhs_syntax: rhs_syntax.next(),
},
));
i += 1;
}
// Step into this partially/fully novel list.
Syntax::List {
@ -323,6 +324,7 @@ pub fn neighbours<'a>(v: &Vertex<'a>, buf: &mut [Option<(Edge, Vertex<'a>)>]) {
rhs_syntax: rhs_syntax.next(),
},
));
i += 1;
}
}
}