minor code cleanups

This commit is contained in:
Matthias Krüger
2022-12-12 19:49:53 +01:00
parent 37d7de3379
commit 2ea368e53c
8 changed files with 11 additions and 20 deletions

View File

@@ -802,7 +802,7 @@ impl Diagnostic {
debug_assert!(
!(suggestions
.iter()
.flat_map(|suggs| suggs)
.flatten()
.any(|(sp, suggestion)| sp.is_empty() && suggestion.is_empty())),
"Span must not be empty and have no suggestion"
);