Rewrite for dictionary indexer

This commit is contained in:
micialware committed 2026-08-19 18:00:03 +03:00
1 parent 746071125a
commit e7023752f1
4 files changed
+10 -14

No files matched your search

+2 -3
View File
@@ -517,8 +517,7 @@ impl ImportState {
.iter()
.map(|name| (name.clone(), Vec::<usize>::with_capacity(1)))
.collect::<Vec<_>>();
for key in group.mapping.keys() {
let endpoint = group.mapping.get(key).unwrap();
for (key, endpoint) in &group.mapping {
let property_index = group.fields.iter().position(|f| f == key).unwrap();
let group_index = result
.iter()
@@ -538,7 +537,7 @@ impl ImportState {
) -> String {
let mut working_words = Vec::with_capacity(indices.len());
for index in indices {
let str = properties.get(*index).unwrap();
let str = &properties[*index];
if skip_empty && str.is_empty() {
continue;
}