Skip to content

Commit

Permalink
Resolve needless_continue pedantic clippy lint
Browse files Browse the repository at this point in the history
    warning: this `continue` expression is redundant
        --> src/expr.rs:2246:21
         |
    2246 |                     continue;
         |                     ^^^^^^^^
         |
         = help: consider dropping the `continue` expression
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue
         = note: `-W clippy::needless-continue` implied by `-W clippy::pedantic`
         = help: to override `-W clippy::pedantic` add `#[allow(clippy::needless_continue)]`
  • Loading branch information
dtolnay committed Jan 11, 2025
1 parent dc1c012 commit 42601b9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2243,7 +2243,6 @@ pub(crate) mod parsing {
if lookahead.peek(Token![if]) {
expr.else_branch = Some((else_token, Box::new(Expr::PLACEHOLDER)));
clauses.push(expr);
continue;
} else if lookahead.peek(token::Brace) {
expr.else_branch = Some((
else_token,
Expand Down

0 comments on commit 42601b9

Please sign in to comment.