Skip to content

Commit 0269e66

Browse files
committed
Fixed some remaining whitespace issues.
(Not sure if it is correct although).
1 parent 2b77760 commit 0269e66

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

src/librustc_typeck/check/demand.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,12 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
132132
let expr_text = print::to_string(print::NO_ANN, |s| s.print_expr(expr));
133133
let suggestions = compatible_variants.iter()
134134
.map(|v| format!("{}({})", v, expr_text)).collect::<Vec<_>>();
135-
err.span_suggestions_with_applicability(expr.span,
136-
"try using a variant of the expected type",
137-
suggestions,
138-
Applicability::MaybeIncorrect,
139-
);
135+
err.span_suggestions_with_applicability(
136+
expr.span,
137+
"try using a variant of the expected type",
138+
suggestions,
139+
Applicability::MaybeIncorrect,
140+
);
140141
}
141142
}
142143

src/librustc_typeck/check/method/suggest.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,16 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
251251
let snippet = tcx.sess.source_map().span_to_snippet(lit.span)
252252
.unwrap_or("<numeric literal>".to_string());
253253

254-
err.span_suggestion_with_applicability(lit.span,
254+
err.span_suggestion_with_applicability(
255+
lit.span,
255256
&format!("you must specify a concrete type for \
256257
this numeric value, like `{}`",
257258
concrete_type),
258259
format!("{}_{}",
259260
snippet,
260261
concrete_type),
261262
Applicability::MaybeIncorrect,
262-
);
263+
);
263264
}
264265
hir::ExprKind::Path(ref qpath) => { // local binding
265266
if let &hir::QPath::Resolved(_, ref path) = &qpath {
@@ -524,7 +525,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
524525
&msg,
525526
path_strings,
526527
Applicability::MaybeIncorrect,
527-
);
528+
);
528529
} else {
529530
let limit = if candidates.len() == 5 { 5 } else { 4 };
530531
for (i, trait_did) in candidates.iter().take(limit).enumerate() {

src/librustc_typeck/check/op.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
449449
msg,
450450
format!("{}.to_owned()", lstring),
451451
Applicability::MachineApplicable,
452-
),
452+
),
453453
_ => err.help(msg),
454454
};
455455
}

src/libsyntax/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl<'a> StripUnconfigured<'a> {
129129
"expected syntax is",
130130
suggestion.into(),
131131
Applicability::MaybeIncorrect,
132-
);
132+
);
133133
}
134134
err.emit();
135135
true

0 commit comments

Comments
 (0)