implement equivalent for Pattern::Stmt

This commit is contained in:
Luke Boswell 2024-03-24 12:30:05 +11:00
parent 42fdcb7ff1
commit a5df0aa1c2
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0

View file

@ -1130,7 +1130,13 @@ impl<'a> Pattern<'a> {
}
}
Stmt(_) => todo!(),
Stmt(str_x) => {
if let Stmt(str_y) = other {
str_x == str_y
} else {
false
}
}
}
}
}