add Debug impl for InvalidId

This commit is contained in:
liquidex 2024-09-07 14:30:58 +02:00
parent 958cab5452
commit e12573566e

View file

@ -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> {