Skip to content

Conversation

@dishmaker
Copy link
Contributor

@dishmaker dishmaker commented Oct 28, 2025

///
/// Returns a byte array of the requested size containing a big endian integer.
pub(crate) fn decode_to_slice(bytes: &[u8]) -> Result<&[u8]> {
pub(crate) fn decode_to_slice(bytes: &[u8]) -> result::Result<&[u8], ErrorKind> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is result::Result<&[u8], ErrorKind> ok?
Or should I revert to Result<&[u8]> ?

@dishmaker dishmaker marked this pull request as draft October 28, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant