changeset 44973 | 26114bd6ec60 |
parent 44234 | bad4e7b361d2 |
child 46440 | 776b97179c06 |
--- a/rust/hg-cpython/src/dirstate/dirs_multiset.rs Mon Jun 15 15:14:16 2020 -0400 +++ b/rust/hg-cpython/src/dirstate/dirs_multiset.rs Mon Jun 15 18:26:40 2020 +0200 @@ -128,7 +128,7 @@ py: Python, res: &HgPathBuf, ) -> PyResult<Option<PyBytes>> { - Ok(Some(PyBytes::new(py, res.as_ref()))) + Ok(Some(PyBytes::new(py, res.as_bytes()))) } }