rust-format: make rustfmt happy stable
authorRaphaël Gomès <rgomes@octobus.net>
Thu, 05 Mar 2020 17:17:02 +0100
branchstable
changeset 44428 927137fc3035
parent 44415 07b79569fdf8
child 44429 24a3a9f7ea77
rust-format: make rustfmt happy Differential Revision: https://phab.mercurial-scm.org/D8228
rust/hg-cpython/src/dirstate/dirstate_map.rs
--- 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,