remove alias

This commit is contained in:
Eli Dowling 2024-02-13 15:27:44 +10:00 committed by faldor20
parent 7a09a31a6a
commit cc4453b301
No known key found for this signature in database
GPG key ID: F2216079B890CD57
4 changed files with 3 additions and 17 deletions

View file

@ -41,9 +41,8 @@ impl<'a> Formattable for Pattern<'a> {
fn is_multiline(&self) -> bool {
// Theory: a pattern should only be multiline when it contains a comment
match self {
Pattern::SpaceBefore(_, spaces) | Pattern::SpaceAfter(_, spaces) => {
//TODO: This isn't always true, should it be?
// debug_assert!(!spaces.is_empty());
Pattern::SpaceBefore(a, spaces) | Pattern::SpaceAfter(a, spaces) => {
debug_assert!(!spaces.is_empty(), "spaces is empty in pattern {:#?}", a);
spaces.iter().any(|s| s.is_comment())
}