rust/hg-cpython/src/dirstate.rs
changeset 42558 11c025c83393
parent 42537 ce94f9622acd
child 42609 326fdce22fb2
--- 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()))
     }
 });