diff --git a/masp_primitives/src/asset_type.rs b/masp_primitives/src/asset_type.rs index 44451524..24a48021 100644 --- a/masp_primitives/src/asset_type.rs +++ b/masp_primitives/src/asset_type.rs @@ -149,14 +149,14 @@ impl AssetType { self.nonce } - /// Deserialize an AssetType object - pub fn read(reader: &mut R) -> std::io::Result { - let mut atype = [0; crate::constants::ASSET_IDENTIFIER_LENGTH]; - reader.read_exact(&mut atype)?; - AssetType::from_identifier(&atype).ok_or_else(|| { - std::io::Error::new(std::io::ErrorKind::InvalidData, "invalid asset type") - }) - } + /// Deserialize an AssetType object + pub fn read(reader: &mut R) -> std::io::Result { + let mut atype = [0; crate::constants::ASSET_IDENTIFIER_LENGTH]; + reader.read_exact(&mut atype)?; + AssetType::from_identifier(&atype).ok_or_else(|| { + std::io::Error::new(std::io::ErrorKind::InvalidData, "invalid asset type") + }) + } } impl PartialEq for AssetType {