diff --git a/src/parsing/syntax_set.rs b/src/parsing/syntax_set.rs index 53a6330..601dd66 100644 --- a/src/parsing/syntax_set.rs +++ b/src/parsing/syntax_set.rs @@ -590,12 +590,12 @@ impl SyntaxSetBuilder { } let mut found_more_backref_includes = true; - for (syntax_index, syntax) in syntaxes.iter().enumerate() { + for (syntax_index, _syntax) in syntaxes.iter().enumerate() { let mut no_prototype = HashSet::new(); let prototype = all_context_ids[syntax_index].get("prototype"); if let Some(prototype_id) = prototype { // TODO: We could do this after parsing YAML, instead of here? - Self::recursively_mark_no_prototype(syntax, prototype_id, &all_context_ids[syntax_index], &all_contexts, &mut no_prototype); + Self::recursively_mark_no_prototype(prototype_id, &all_context_ids[syntax_index], &all_contexts, &mut no_prototype); } for context_id in all_context_ids[syntax_index].values() { @@ -670,7 +670,6 @@ impl SyntaxSetBuilder { /// Anything recursively included by the prototype shouldn't include the prototype. /// This marks them as such. fn recursively_mark_no_prototype( - _syntax: &SyntaxReference, context_id: &ContextId, syntax_context_ids: &HashMap, all_contexts: &[Vec], @@ -696,11 +695,11 @@ impl SyntaxSetBuilder { match context_ref { ContextReference::Inline(ref s) | ContextReference::Named(ref s) => { if let Some(i) = syntax_context_ids.get(s) { - Self::recursively_mark_no_prototype(_syntax, i, syntax_context_ids, all_contexts, no_prototype); + Self::recursively_mark_no_prototype(i, syntax_context_ids, all_contexts, no_prototype); } }, ContextReference::Direct(ref id) => { - Self::recursively_mark_no_prototype(_syntax, id, syntax_context_ids, all_contexts, no_prototype); + Self::recursively_mark_no_prototype(id, syntax_context_ids, all_contexts, no_prototype); }, _ => (), } @@ -711,11 +710,11 @@ impl SyntaxSetBuilder { match reference { ContextReference::Named(ref s) => { if let Some(id) = syntax_context_ids.get(s) { - Self::recursively_mark_no_prototype(_syntax, id, syntax_context_ids, all_contexts, no_prototype); + Self::recursively_mark_no_prototype(id, syntax_context_ids, all_contexts, no_prototype); } }, ContextReference::Direct(ref id) => { - Self::recursively_mark_no_prototype(_syntax, id, syntax_context_ids, all_contexts, no_prototype); + Self::recursively_mark_no_prototype(id, syntax_context_ids, all_contexts, no_prototype); }, _ => (), }