changeset 44428:927137fc3035 stable

rust-format: make rustfmt happy Differential Revision: https://phab.mercurial-scm.org/D8228
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 05 Mar 2020 17:17:02 +0100
parents 07b79569fdf8
children 24a3a9f7ea77
files rust/hg-cpython/src/dirstate/dirstate_map.rs
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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,