changeset 44973 | 26114bd6ec60 |
parent 44416 | 8ac5726d695d |
child 47094 | e061a1df32a8 |
--- a/rust/hg-cpython/src/dirstate/non_normal_entries.rs Mon Jun 15 15:14:16 2020 -0400 +++ b/rust/hg-cpython/src/dirstate/non_normal_entries.rs Mon Jun 15 18:26:40 2020 +0200 @@ -62,7 +62,7 @@ py: Python, key: &HgPathBuf, ) -> PyResult<Option<PyBytes>> { - Ok(Some(PyBytes::new(py, key.as_ref()))) + Ok(Some(PyBytes::new(py, key.as_bytes()))) } }