--- a/rust/hg-cpython/src/dirstate/dirstate_map.rs Thu Dec 26 14:12:45 2019 -0800
+++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs Fri Feb 14 15:03:26 2020 +0100
@@ -175,8 +175,7 @@
locals.set_item(
py,
"other_parent",
- other_parent.as_ref()
- .unwrap()
+ other_parent
.iter()
.map(|v| PyBytes::new(py, v.as_ref()))
.collect::<Vec<PyBytes>>()
@@ -196,8 +195,6 @@
.inner(py)
.borrow_mut()
.get_non_normal_other_parent_entries().0
- .as_ref()
- .unwrap()
.contains(HgPath::new(key.data(py))))
}
@@ -211,8 +208,7 @@
.inner(py)
.borrow_mut()
.get_non_normal_other_parent_entries().0
- .as_ref()
- .unwrap().iter().map(|o| o))
+ .iter().map(|o| o))
)
)
}