D8228: rust-format: make rustfmt happy
Alphare (Raphaël Gomès)
phabricator at mercurial-scm.org
Thu Mar 5 16:33:10 UTC 2020
Closed by commit rHG927137fc3035: rust-format: make rustfmt happy (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8228?vs=20507&id=20510
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8228/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8228
AFFECTED FILES
rust/hg-cpython/src/dirstate/dirstate_map.rs
CHANGE DETAILS
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 @@
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,
To: Alphare, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list