author | Raphaël Gomès <rgomes@octobus.net> |
Mon, 01 Jul 2019 10:53:36 +0200 | |
changeset 42558 | 11c025c83393 |
parent 42557 | d26e4a434fe5 |
child 42559 | a80464e85ddd |
--- a/rust/hg-cpython/src/dirstate.rs Mon Jul 01 10:50:18 2019 +0200 +++ b/rust/hg-cpython/src/dirstate.rs Mon Jul 01 10:53:36 2019 +0200 @@ -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())) } });