diff -r e604a3c03ab9 -r 496537c9c1b4 rust/hg-cpython/src/parsers.rs --- a/rust/hg-cpython/src/parsers.rs Wed Sep 30 18:10:53 2020 +0200 +++ b/rust/hg-cpython/src/parsers.rs Wed Sep 30 18:10:29 2020 +0200 @@ -119,11 +119,11 @@ Duration::from_secs(now.as_object().extract::(py)?), ) { Ok(packed) => { - for (filename, entry) in &dirstate_map { + for (filename, entry) in dirstate_map.iter() { dmap.set_item( py, PyBytes::new(py, filename.as_bytes()), - make_dirstate_tuple(py, entry)?, + make_dirstate_tuple(py, &entry)?, )?; } Ok(PyBytes::new(py, &packed))