Kill some warnings
This commit is contained in:
parent
abf25d648d
commit
3f836eb74f
@ -100,7 +100,7 @@ impl Declaration {
|
|||||||
use self::Declaration::*;
|
use self::Declaration::*;
|
||||||
match self {
|
match self {
|
||||||
Binding {name, constant, expr } => Stmt::Binding { name: name.clone(), constant: *constant, expr: expr.reduce() },
|
Binding {name, constant, expr } => Stmt::Binding { name: name.clone(), constant: *constant, expr: expr.reduce() },
|
||||||
FuncDecl(::parsing::Signature { name, params, type_anno }, statements) => Stmt::Binding {
|
FuncDecl(::parsing::Signature { name, params, .. }, statements) => Stmt::Binding {
|
||||||
name: name.clone(),
|
name: name.clone(),
|
||||||
constant: true,
|
constant: true,
|
||||||
expr: Expr::Func(Func::UserDefined {
|
expr: Expr::Func(Func::UserDefined {
|
||||||
|
@ -93,7 +93,7 @@ fn typechecking(handle: &mut Schala, input: parsing::AST, comp: Option<&mut Unfi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ast_reducing(handle: &mut Schala, input: parsing::AST, comp: Option<&mut UnfinishedComputation>) -> Result<ast_reducing::ReducedAST, String> {
|
fn ast_reducing(_handle: &mut Schala, input: parsing::AST, comp: Option<&mut UnfinishedComputation>) -> Result<ast_reducing::ReducedAST, String> {
|
||||||
let output = input.reduce();
|
let output = input.reduce();
|
||||||
comp.map(|comp| comp.add_artifact(TraceArtifact::new("ast_reducing", format!("{:?}", output))));
|
comp.map(|comp| comp.add_artifact(TraceArtifact::new("ast_reducing", format!("{:?}", output))));
|
||||||
Ok(output)
|
Ok(output)
|
||||||
|
Loading…
Reference in New Issue
Block a user