This is an archive of the discontinued Mercurial Phabricator instance.

rust: Move PyBytesWithData out of copy-tracing code
ClosedPublic

Authored by SimonSapin on Sep 10 2021, 11:11 AM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.