mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 07:59:59 -07:00
chore: cargo fmt
This commit is contained in:
committed by
Will Greenberg
parent
151e186ef9
commit
9fe75ac961
@@ -10,9 +10,9 @@ pub enum ParsingError {
|
||||
}
|
||||
|
||||
pub fn decode<T>(data: &[u8]) -> Result<T, ParsingError>
|
||||
where T: UperCodec<Output = T>
|
||||
where
|
||||
T: UperCodec<Output = T>,
|
||||
{
|
||||
let mut asn_data = PerCodecData::from_slice_uper(data);
|
||||
T::uper_decode(&mut asn_data)
|
||||
.map_err(ParsingError::UperDecodeError)
|
||||
T::uper_decode(&mut asn_data).map_err(ParsingError::UperDecodeError)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user