fix: correct the backing array list for query parameters from FFI call
@@ -518,21 +518,15 @@ pub extern fn with_query_parameter(interaction: handles::InteractionHandle,
values[index] = value.to_string();
} else {
let mut values: Vec<String> = Vec::new();
- if index > 0 {
values.resize_with(index + 1, Default::default);
- }
values[index] = value.to_string();
q.insert(name.to_string(), values);
};
q
}).or_else(|| {
let mut values: Vec<String> = Vec::new();
- if index > 0 {
values.resize_with(index + 1, Default::default);
values[index] = value.to_string();
- } else {
- values.push(value.to_string());
- }
Some(hashmap!{ name.to_string() => values })
});
});
