Add missing newlines to 'join' in error messages.
This commit is contained in:
parent
3c7663cd3c
commit
56e90fba21
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue