Print (filtered) warnings in the repl again

This commit is contained in:
Richard Feldman 2022-11-01 00:25:11 -04:00
parent 9854dceec8
commit 167e8a40de
No known key found for this signature in database
GPG Key ID: F1F21AA5B1D9E43B

View File

@ -561,8 +561,7 @@ fn format_output(
) -> String {
let mut buf = String::new();
// Only print errors; discard warnings.
for message in problems.errors.iter() {
for message in problems.errors.iter().chain(problems.warnings.iter()) {
if !buf.is_empty() {
buf.push_str("\n\n");
}