# HG changeset patch # User Raphaël Gomès # Date 2020-03-05 16:17:02 # Node ID 927137fc3035932683b36a9732cff339b8b05802 # Parent 07b79569fdf8f778878bf7ae1e13cd5fb31ae837 rust-format: make rustfmt happy Differential Revision: https://phab.mercurial-scm.org/D8228 diff --git a/rust/hg-cpython/src/dirstate/dirstate_map.rs b/rust/hg-cpython/src/dirstate/dirstate_map.rs --- a/rust/hg-cpython/src/dirstate/dirstate_map.rs +++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs @@ -348,7 +348,9 @@ py_class!(pub class DirstateMap |py| { def __contains__(&self, key: PyObject) -> PyResult { let key = key.extract::(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 { @@ -438,7 +440,10 @@ py_class!(pub class DirstateMap |py| { def copymapgetitem(&self, key: PyObject) -> PyResult { let key = key.extract::(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::( py,