Fix crash with doubly-nested parens in patterns

This commit is contained in:
Joshua Warner 2024-12-24 14:08:52 -05:00
parent 941c6c4fe3
commit 8f0566a55f
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
7 changed files with 82 additions and 1 deletions

View file

@ -1445,6 +1445,10 @@ impl<'a, T: Copy> ExtractSpaces<'a> for NodeSpaces<'a, T> {
after: self.after,
}
}
fn without_spaces(&self) -> T {
self.item
}
}
impl<'a, V: Formattable> Formattable for NodeSpaces<'a, V> {