Mercurial > public > mercurial-scm > hg
comparison rust/hg-cpython/src/exceptions.rs @ 47953:8f031a274cd6
rust: Move PyBytesWithData out of copy-tracing code
So we can use it in other places to.
Replace its `.data()` method with the `Deref<Target = [u8]>` trait,
allowing this type to be used in generic contexts.
Rename the type accordingly.
Differential Revision: https://phab.mercurial-scm.org/D11395
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Mon, 06 Sep 2021 13:39:54 +0200 |
parents | f96b28aa4b79 |
children | 35ebe6f824be |
comparison
equal
deleted
inserted
replaced
47952:9cd35c8c6044 | 47953:8f031a274cd6 |
---|