Remove many unwrap

This commit is contained in:
micialware committed 2026-08-19 19:21:21 +03:00
1 parent 39f8845119
commit 01f0999772
5 files changed
+40 -21

No files matched your search

+1 -1
View File
@@ -512,7 +512,7 @@ impl ImportState {
.map(|name| (name.clone(), Vec::<usize>::with_capacity(1)))
.collect::<Vec<_>>();
for (key, endpoint) in &group.mapping {
let property_index = group.fields.iter().position(|f| f == key).unwrap();
let property_index = group.fields.iter().position(|f| f == key).expect("Unknown property");
let group_index = result
.iter()
.position(|(name, _)| name == endpoint)