Kill some warnings

This commit is contained in:
greg 2018-05-12 13:00:39 -07:00
parent abf25d648d
commit 3f836eb74f
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ impl Declaration {
use self::Declaration::*;
match self {
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(),
constant: true,
expr: Expr::Func(Func::UserDefined {

View File

@ -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();
comp.map(|comp| comp.add_artifact(TraceArtifact::new("ast_reducing", format!("{:?}", output))));
Ok(output)