Obeyed our paperclip overlord + fmt

This commit is contained in:
Erin 2021-05-03 21:36:32 +02:00 committed by ondra05
parent 30eedbc854
commit 798c1807db
2 changed files with 3 additions and 5 deletions

View file

@ -215,7 +215,7 @@ impl<'a> Parser<'a> {
let body = self.parse_body()?; let body = self.parse_body()?;
Ok(Stmt::If { cond: cond, body }.into()) Ok(Stmt::If { cond, body }.into())
} }
/// Parse loop /// Parse loop

View file

@ -153,10 +153,8 @@ impl<'a> Parser<'a> {
self.lexer.next(); self.lexer.next();
return Ok(buf); return Ok(buf);
} }
None => return Ok(buf.into()), None => return Ok(buf),
Some(t) => { Some(t) => self.parse_operation(Some(t), buf)?,
self.parse_operation(Some(t), buf)?
}
}; };
} }
} }