From c86d1000c035b105adaadbddf57d52c0f3b17bbc Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 16 Oct 2023 12:58:20 -0400 Subject: [PATCH] Do not clear values in lists of strings. This is a hold-over from when I had list of single string which was a misunderstanding of the optional pair type. --- src/parser/affiliated_keyword.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/parser/affiliated_keyword.rs b/src/parser/affiliated_keyword.rs index ea8565ca..485fadc7 100644 --- a/src/parser/affiliated_keyword.rs +++ b/src/parser/affiliated_keyword.rs @@ -48,13 +48,7 @@ where AffiliatedKeywordValue::ListOfStrings(Vec::with_capacity(1)) }); match list_of_strings { - AffiliatedKeywordValue::ListOfStrings(list_of_strings) - if list_of_strings.is_empty() => - { - list_of_strings.push(kw.value); - } AffiliatedKeywordValue::ListOfStrings(list_of_strings) => { - list_of_strings.clear(); list_of_strings.push(kw.value); } _ => panic!("Invalid AffiliatedKeywordValue type."),