Not intoing into Expr seems more expressive.
This commit is contained in:
-12
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user