Not intoing into Expr seems more expressive.

This commit is contained in:
2026-11-15 10:35:10 +01:00
parent 66a873c7aa
commit c2e306321d
2 changed files with 40 additions and 42 deletions
-12
View File
@@ -66,18 +66,6 @@ pub enum Expr {
FnCall(FnCall),
}
impl From<LitNumber> for Expr {
fn from(lit: LitNumber) -> Self {
Expr::Literal(lit.into())
}
}
impl From<LitString> for Expr {
fn from(lit: LitString) -> Self {
Expr::Literal(lit.into())
}
}
#[derive(Debug, PartialEq)]
pub enum Literal {
Number(LitNumber),