Getting rid of some unused warnings
This commit is contained in:
parent
6a548c9086
commit
d7e73be44c
@ -69,7 +69,7 @@ impl SymbolTable {
|
|||||||
let mut types = vec![];
|
let mut types = vec![];
|
||||||
for param in signature.params.iter() {
|
for param in signature.params.iter() {
|
||||||
match param {
|
match param {
|
||||||
(_, Some(ty)) => {
|
(_, Some(_ty)) => {
|
||||||
//TODO eventually handle this case different
|
//TODO eventually handle this case different
|
||||||
types.push(Rc::new(format!("{}", ch)));
|
types.push(Rc::new(format!("{}", ch)));
|
||||||
ch = ((ch as u8) + 1) as char;
|
ch = ((ch as u8) + 1) as char;
|
||||||
@ -86,7 +86,8 @@ impl SymbolTable {
|
|||||||
Symbol { name: signature.name.clone(), spec }
|
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() {
|
for (index, var) in variants.iter().enumerate() {
|
||||||
match var {
|
match var {
|
||||||
Variant::UnitStruct(variant_name) => {
|
Variant::UnitStruct(variant_name) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user