by heavyset_go · 5y ago · 0 comments
while let Some(line_in) in parse_line(&reader).await? {
broadcast_line(line_in)?;
}If you were allowed to use in this way, it feels reasonable right? parse_line eventually gave us an Iterator of line_in values, we iterate it until we get a None instead of a Some with a line_in value, and that exits the loop.
Yeah, that's why I was confused. I can imagine seeing something like this implemented with macros.