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.
This commit is contained in:
parent
911634cb42
commit
c86d1000c0
@ -48,13 +48,7 @@ where
|
|||||||
AffiliatedKeywordValue::ListOfStrings(Vec::with_capacity(1))
|
AffiliatedKeywordValue::ListOfStrings(Vec::with_capacity(1))
|
||||||
});
|
});
|
||||||
match list_of_strings {
|
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) => {
|
AffiliatedKeywordValue::ListOfStrings(list_of_strings) => {
|
||||||
list_of_strings.clear();
|
|
||||||
list_of_strings.push(kw.value);
|
list_of_strings.push(kw.value);
|
||||||
}
|
}
|
||||||
_ => panic!("Invalid AffiliatedKeywordValue type."),
|
_ => panic!("Invalid AffiliatedKeywordValue type."),
|
||||||
|
Loading…
Reference in New Issue
Block a user