Skip to content

Commit

Permalink
More dogfood test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
yati-sagade committed Apr 8, 2017
1 parent 7b4a12f commit 9396120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/needless_continue.rs
Expand Up @@ -238,8 +238,8 @@ fn suggestion_snippet_for_continue_inside_if<'a>(ctx: &EarlyContext,
header: &str) -> String {
let cond_code = &snippet(ctx, data.if_cond.span, "..").into_owned();

let if_code = &format!("if {} {{\n continue;\n}}\n", cond_code);
/* ^^^^--- Four spaces of indentation. */
let if_code = format!("if {} {{\n continue;\n}}\n", cond_code);
/* ^^^^--- Four spaces of indentation. */
// region B
let else_code = snippet(ctx, data.else_expr.span, "..").into_owned();
let else_code = erode_block(&else_code);
Expand Down

0 comments on commit 9396120

Please sign in to comment.