changeset 45610 | 496537c9c1b4 |
parent 45357 | 27424779c5b8 |
child 46439 | 68a15b5a7e58 |
--- 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::<u64>(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))