diff rust/hg-cpython/src/lib.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 50c5ee3bdf9a
children 1194394510ba
line wrap: on
line diff
--- a/rust/hg-cpython/src/lib.rs	Mon Sep 06 11:39:59 2021 +0200
+++ b/rust/hg-cpython/src/lib.rs	Mon Sep 06 13:39:54 2021 +0200
@@ -36,6 +36,7 @@
 pub mod discovery;
 pub mod exceptions;
 pub mod parsers;
+mod pybytes_deref;
 pub mod revlog;
 pub mod utils;