Add missing newlines to 'join' in error messages.

This commit is contained in:
KtorZ
2023-02-11 16:24:56 +01:00
parent 3c7663cd3c
commit 56e90fba21

View File

@@ -424,7 +424,7 @@ In this particular instance, the following cases are unmatched:
.iter()
.map(|s| format!("─▶ {s}"))
.collect::<Vec<_>>()
.join("")
.join("\n")
))]
NotExhaustivePatternMatch {
#[label("{}", if *is_let { "use when/is" } else { "non-exhaustive" })]
@@ -1247,5 +1247,5 @@ fn format_suggestion(sample: &UntypedExpr) -> String {
}
})
.collect::<Vec<_>>()
.join("")
.join("\n")
}