Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vkobinski committed Jun 16, 2024
1 parent 807cb9a commit 1681edd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
14 changes: 0 additions & 14 deletions crates/benda/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,6 @@ enum FromExpr {
}

impl FromExpr {
pub fn to_expr(&self) -> Option<Expr> {
if let FromExpr::Expr(exp) = self {
return Some(exp.clone());
}
None
}

pub fn to_stmt(&self) -> Option<Stmt> {
if let FromExpr::Statement(stmt) = self {
return Some(stmt.clone());
}
None
}

pub fn get_var_name(&self) -> Option<Name> {
if let FromExpr::Expr(Expr::Var { nam }) = self {
Some(nam.clone())
Expand Down
2 changes: 1 addition & 1 deletion result

0 comments on commit 1681edd

Please sign in to comment.