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
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 2 additions and 2 deletions

View File

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