Run cargo fix

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-05-20 15:33:21 -04:00
parent 0eaa5060a2
commit 926447a62d
4 changed files with 11 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ impl<'c, 't> TranslateAst<'c, 't> {
TranslateAst { ctx, text }
}
pub fn translate(&mut self, ast: &Vec<Stmt>) -> Result<ir::Body> {
pub fn translate(&mut self, _ast: &Vec<Stmt>) -> Result<ir::Body> {
todo!()
}
@@ -29,7 +29,7 @@ impl<'c, 't> TranslateAst<'c, 't> {
kind: BaseExprKind::Ident,
..
}) => {
let name = expr.text_at(self.text);
let _name = expr.text_at(self.text);
//let name_id = self.ctx.
todo!()
//Ok(ir::Lhs::Name(
@@ -42,7 +42,7 @@ impl<'c, 't> TranslateAst<'c, 't> {
impl Visit<Stmt> for TranslateAst<'_, '_> {
type Out = Result<ir::Stmt>;
fn visit(&mut self, stmt: &Stmt) -> Self::Out {
fn visit(&mut self, _stmt: &Stmt) -> Self::Out {
todo!()
}
}
@@ -50,7 +50,7 @@ impl Visit<Stmt> for TranslateAst<'_, '_> {
impl Visit<AssignStmt> for TranslateAst<'_, '_> {
type Out = Result<ir::Stmt>;
fn visit(&mut self, stmt: &AssignStmt) -> Self::Out {
fn visit(&mut self, _stmt: &AssignStmt) -> Self::Out {
todo!()
}
}
@@ -58,7 +58,7 @@ impl Visit<AssignStmt> for TranslateAst<'_, '_> {
impl Visit<Expr> for TranslateAst<'_, '_> {
type Out = Result<ir::Expr>;
fn visit(&mut self, expr: &Expr) -> Self::Out {
fn visit(&mut self, _expr: &Expr) -> Self::Out {
todo!()
}
}