We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf577f3 commit cceb968Copy full SHA for cceb968
compiler/rustc_parse_format/src/lib.rs
@@ -514,13 +514,7 @@ impl<'a> Parser<'a> {
514
515
/// Consumes all whitespace characters until the first non-whitespace character
516
fn ws(&mut self) {
517
- while let Some(&(_, c)) = self.cur.peek() {
518
- if c.is_whitespace() {
519
- self.cur.next();
520
- } else {
521
- break;
522
- }
523
+ while let Some(_) = self.cur.next_if(|&(_, c)| c.is_whitespace()) {}
524
}
525
526
/// Parses all of a string which is to be considered a "raw literal" in a
0 commit comments