1
Fork 0

Rename BinOpKind::lazy as BinOpKind::is_lazy.

To match `BinOpKind::is_comparison` and `hir::BinOpKind::is_lazy`.
This commit is contained in:
Nicholas Nethercote 2023-11-28 09:42:25 +11:00
parent 0efd2a9d8f
commit 705b484922
3 changed files with 5 additions and 4 deletions

View file

@ -881,7 +881,8 @@ impl BinOpKind {
Gt => ">",
}
}
pub fn lazy(&self) -> bool {
pub fn is_lazy(&self) -> bool {
matches!(self, BinOpKind::And | BinOpKind::Or)
}