Simplify creating Expr
This commit is contained in:
parent
42369628b6
commit
fafc567447
15 changed files with 163 additions and 112 deletions
|
|
@ -198,3 +198,9 @@ impl HasSpan for Lit {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Lit {
|
||||
pub fn expr(self) -> Expr {
|
||||
Expr::Lit(self)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue