D6773: rust-hgpath: add HgPath and HgPathBuf structs to encapsulate handling of paths
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Sat Aug 31 08:20:24 EDT 2019
yuja added a comment.
> +#[derive(Eq, Ord, PartialEq, PartialOrd, Debug, Hash)]
> +pub struct HgPath {
> + inner: [u8],
> +}
I found `std::path::Path` has a well-written inline comment about
the unsafe pointer cast. Let's copy it so we won't introduce a
memory issue.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D6773/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D6773
To: Alphare, #hg-reviewers, kevincox
Cc: yuja, durin42, kevincox, mercurial-devel
More information about the Mercurial-devel
mailing list