feat: Implement `LiteralExpr` for `bool`

pull/24376/head
Stuart Carnie 2023-06-02 13:38:37 +10:00
parent d5719f9be2
commit bf4fce3c77
No known key found for this signature in database
GPG Key ID: 848D9C9718D78B4F
1 changed files with 6 additions and 0 deletions

View File

@ -657,6 +657,12 @@ impl LiteralExpr for Duration {
}
}
impl LiteralExpr for bool {
fn lit(self) -> Expr {
Expr::Literal(Literal::Boolean(self))
}
}
impl LiteralExpr for i64 {
fn lit(self) -> Expr {
Expr::Literal(Literal::Integer(self))