8c4fa5ec3d
All the types that we define with `impl_array_newtype` are `Copy` so the correct conversion method to get the underlying byte array is `to_bytes`. We currently provide `into_bytes` as well as `to_bytes`, with one of them calling `clone` - this is unnecessary and against convention. - Remove `into_bytes` and for `to_bytes` just return the inner field. - Add a method that causes build to fail if `Copy` is not implemented. |
||
---|---|---|
.. | ||
hex | ||
error.rs | ||
lib.rs | ||
macros.rs |