Submitter | phabricator |
---|---|
Date | July 4, 2019, 2:59 p.m. |
Message ID | <differential-rev-PHID-DREV-hozuj7cjyusllepjmur2-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/40744/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/rust/hg-cpython/src/dirstate.rs b/rust/hg-cpython/src/dirstate.rs --- a/rust/hg-cpython/src/dirstate.rs +++ b/rust/hg-cpython/src/dirstate.rs @@ -291,8 +291,7 @@ Ok(self .dirs_map(py) .borrow() - .get(&item.extract::<PyBytes>(py)?.data(py).to_owned()) - .is_some()) + .contains_key(item.extract::<PyBytes>(py)?.data(py).as_ref())) } });