Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #158: Remove default impl of
hex_reserve_suggestion
908ce81 Remove default impl of hex_reserve_suggestion (Tobin C. Harding) Pull request description: The current default impl returns 0, this reduces performance if implementors forget to implement this method and they know up front how many bytes are needed. The trait is sealed so we are the only implementors and it turns out we forgot in one place (well many places because its a macro). Remove the default implementation of `hex_reserve_suggestion` and implement it manually for arrays. ACKs for top commit: Kixunil: ACK 908ce81 apoelstra: ACK 908ce81; successfully ran local tests Tree-SHA512: 36e4ea218ead9f01cc20a0050b8d02a574ba74f8cb8fbb8e83aa970eab11e3fb43c98d8117e04b94fcbaded333e16e69acc68ff2f10fe85298639794014afd69
- Loading branch information