rust/hg-cpython/src/dirstate/dirstate_map.rs
branchstable
changeset 44428 927137fc3035
parent 44327 71e13cfd6154
child 44441 8cdd0b9629e3
--- a/rust/hg-cpython/src/dirstate/dirstate_map.rs	Wed Mar 04 11:51:13 2020 -0500
+++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs	Thu Mar 05 17:17:02 2020 +0100
@@ -348,7 +348,9 @@
 
     def __contains__(&self, key: PyObject) -> PyResult<bool> {
         let key = key.extract::<PyBytes>(py)?;
-        Ok(self.inner_shared(py).borrow().contains_key(HgPath::new(key.data(py))))
+        Ok(self.inner_shared(py)
+               .borrow()
+               .contains_key(HgPath::new(key.data(py))))
     }
 
     def __getitem__(&self, key: PyObject) -> PyResult<PyObject> {
@@ -438,7 +440,10 @@
 
     def copymapgetitem(&self, key: PyObject) -> PyResult<PyBytes> {
         let key = key.extract::<PyBytes>(py)?;
-        match self.inner_shared(py).borrow().copy_map.get(HgPath::new(key.data(py))) {
+        match self.inner_shared(py)
+                  .borrow()
+                  .copy_map
+                  .get(HgPath::new(key.data(py))) {
             Some(copy) => Ok(PyBytes::new(py, copy.as_ref())),
             None => Err(PyErr::new::<exc::KeyError, _>(
                 py,