rust/hg-pyo3/src/path.rs
changeset 52859 9f083ff3c96c
parent 52858 c60f69556924
child 52862 09eb477eec65
equal deleted inserted replaced
52858:c60f69556924 52859:9f083ff3c96c
    13 
    13 
    14 use std::convert::Infallible;
    14 use std::convert::Infallible;
    15 
    15 
    16 use hg::utils::hg_path::{HgPath, HgPathBuf};
    16 use hg::utils::hg_path::{HgPath, HgPathBuf};
    17 
    17 
    18 #[allow(dead_code)]
       
    19 #[derive(Eq, Ord, PartialEq, PartialOrd, Hash, derive_more::From)]
    18 #[derive(Eq, Ord, PartialEq, PartialOrd, Hash, derive_more::From)]
    20 pub struct PyHgPathRef<'a>(pub &'a HgPath);
    19 pub struct PyHgPathRef<'a>(pub &'a HgPath);
    21 
    20 
    22 impl<'py> IntoPyObject<'py> for PyHgPathRef<'_> {
    21 impl<'py> IntoPyObject<'py> for PyHgPathRef<'_> {
    23     type Target = PyBytes;
    22     type Target = PyBytes;