From d7e73be44c35993a25127ec064617b6db2e5aa7c Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 14 Aug 2018 23:07:00 -0700 Subject: [PATCH] Getting rid of some unused warnings --- schala-lang/src/symbol_table.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/schala-lang/src/symbol_table.rs b/schala-lang/src/symbol_table.rs index ef6b50d..0c3f7fc 100644 --- a/schala-lang/src/symbol_table.rs +++ b/schala-lang/src/symbol_table.rs @@ -69,7 +69,7 @@ impl SymbolTable { let mut types = vec![]; for param in signature.params.iter() { match param { - (_, Some(ty)) => { + (_, Some(_ty)) => { //TODO eventually handle this case different types.push(Rc::new(format!("{}", ch))); ch = ((ch as u8) + 1) as char; @@ -86,7 +86,8 @@ impl SymbolTable { Symbol { name: signature.name.clone(), spec } ); }, - TypeDecl { name: TypeSingletonName { name, params}, body: TypeBody(variants), mutable, } => { + //TODO figure out why _params isn't being used here + TypeDecl { name: TypeSingletonName { name, params: _params}, body: TypeBody(variants), mutable: _mutable, } => { for (index, var) in variants.iter().enumerate() { match var { Variant::UnitStruct(variant_name) => {