From f170d292e0339255a96920e50688e4d6e69a5fd6 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 13 Mar 2020 13:04:36 -0700 Subject: [PATCH] Suppress unused field warning --- tags/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tags/src/lib.rs b/tags/src/lib.rs index 19b7be84..0e768b71 100644 --- a/tags/src/lib.rs +++ b/tags/src/lib.rs @@ -14,11 +14,11 @@ pub struct TagsConfiguration { class_capture_index: Option, doc_capture_index: Option, function_capture_index: Option, - locals_pattern_index: usize, method_capture_index: Option, module_capture_index: Option, name_capture_index: Option, pattern_info: Vec, + _locals_pattern_index: usize, } pub struct TagsContext { @@ -141,7 +141,6 @@ impl TagsConfiguration { Ok(TagsConfiguration { language, query, - locals_pattern_index, function_capture_index, class_capture_index, method_capture_index, @@ -150,6 +149,7 @@ impl TagsConfiguration { call_capture_index, name_capture_index, pattern_info, + _locals_pattern_index: locals_pattern_index, }) } }