changeset 46227 | 5bae4bc9bd42 |
parent 45610 | 496537c9c1b4 |
child 46440 | 776b97179c06 |
--- a/rust/hg-cpython/src/dirstate/dirstate_map.rs Tue Jan 12 22:43:55 2021 +0100 +++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs Wed Dec 30 00:14:28 2020 +0100 @@ -350,8 +350,8 @@ { dict.set_item( py, - key.as_bytes().to_vec(), - value.as_bytes().to_vec(), + PyBytes::new(py, key.as_bytes()).into_object(), + PyBytes::new(py, value.as_bytes()).into_object(), )?; } Ok(dict)