Skip to content

Commit bff4795

Browse files
committed
Tidy errors
1 parent 9d41d0e commit bff4795

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/librustc_resolve/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2314,7 +2314,8 @@ impl<'a> Resolver<'a> {
23142314
enum_path);
23152315
err.help(&msg);
23162316
} else {
2317-
err.span_suggestion(span, "you can try using the variant's enum", enum_path);
2317+
err.span_suggestion(span, "you can try using the variant's enum",
2318+
enum_path);
23182319
}
23192320
}
23202321
}

src/librustc_resolve/macros.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,8 @@ impl<'a> Resolver<'a> {
649649
if let Some(suggestion) = suggestion {
650650
if suggestion != name {
651651
if let MacroKind::Bang = kind {
652-
err.span_suggestion(span, "you could try the macro", format!("{}!", suggestion));
652+
err.span_suggestion(span, "you could try the macro",
653+
format!("{}!", suggestion));
653654
} else {
654655
err.span_suggestion(span, "try", suggestion.to_string());
655656
}

0 commit comments

Comments
 (0)