remove unit type from EmptyDefsFinal

This commit is contained in:
Luke Boswell 2024-04-14 13:44:43 +10:00
parent 93ef5e42dc
commit 129ca94733
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
7 changed files with 13 additions and 13 deletions

View file

@ -48,7 +48,7 @@ impl<'a> Formattable for Expr<'a> {
| Tag(_)
| OpaqueRef(_)
| IngestedFile(_, _)
| EmptyDefsFinal()
| EmptyDefsFinal
| Crash => false,
// These expressions always have newlines
@ -428,7 +428,7 @@ impl<'a> Formattable for Expr<'a> {
indent,
);
}
EmptyDefsFinal() => {
EmptyDefsFinal => {
// no need to print anything
}
_ => {
@ -447,7 +447,7 @@ impl<'a> Formattable for Expr<'a> {
buf.push(')');
}
}
EmptyDefsFinal() => {
EmptyDefsFinal => {
// no need to print anything
}
Expect(condition, continuation) => {

View file

@ -669,7 +669,7 @@ impl<'a> RemoveSpaces<'a> for StrSegment<'a> {
impl<'a> RemoveSpaces<'a> for Expr<'a> {
fn remove_spaces(&self, arena: &'a Bump) -> Self {
match *self {
Expr::EmptyDefsFinal() => Expr::EmptyDefsFinal(),
Expr::EmptyDefsFinal => Expr::EmptyDefsFinal,
Expr::Float(a) => Expr::Float(a),
Expr::Num(a) => Expr::Num(a),
Expr::NonBase10Int {