add Debug impl for InvalidId
This commit is contained in:
parent
958cab5452
commit
e12573566e
|
@ -12,6 +12,7 @@ pub fn serialize(f: &mut fmt::Formatter<'_>, prefix: &str, bytes: &[u8; 32]) ->
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct InvalidId;
|
pub struct InvalidId;
|
||||||
|
|
||||||
pub fn deserialize(s: &str, prefix: &str) -> Result<[u8; 32], InvalidId> {
|
pub fn deserialize(s: &str, prefix: &str) -> Result<[u8; 32], InvalidId> {
|
||||||
|
|
Loading…
Reference in a new issue