Rename BinOpKind::lazy
as BinOpKind::is_lazy
.
To match `BinOpKind::is_comparison` and `hir::BinOpKind::is_lazy`.
This commit is contained in:
parent
0efd2a9d8f
commit
705b484922
3 changed files with 5 additions and 4 deletions
|
@ -881,7 +881,8 @@ impl BinOpKind {
|
|||
Gt => ">",
|
||||
}
|
||||
}
|
||||
pub fn lazy(&self) -> bool {
|
||||
|
||||
pub fn is_lazy(&self) -> bool {
|
||||
matches!(self, BinOpKind::And | BinOpKind::Or)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue