feat(nix-compat/nixbase32): use data_encoding::DecodeError
Rather than having our own error type, just make decoding errors use the same common error type. Change-Id: Ie2c86972f3745c695253adc3214444ac0ab8db6e Reviewed-on: https://cl.tvl.fyi/c/depot/+/9995 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
7e317cfded
commit
4218e4dc0e
4 changed files with 28 additions and 30 deletions
|
|
@ -92,7 +92,7 @@ pub enum Error {
|
|||
#[error("invalid base16 encoding: {0}")]
|
||||
InvalidBase16Encoding(data_encoding::DecodeError),
|
||||
#[error("invalid base32 encoding: {0}")]
|
||||
InvalidBase32Encoding(nixbase32::Nixbase32DecodeError),
|
||||
InvalidBase32Encoding(data_encoding::DecodeError),
|
||||
#[error("invalid base64 encoding: {0}")]
|
||||
InvalidBase64Encoding(data_encoding::DecodeError),
|
||||
#[error("conflicting hash algo: {0} (hash_algo) vs {1} (inline)")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue