diff --git a/src/parsing/entry.rs b/src/parsing/entry.rs index 99cf8ce..3ab558f 100644 --- a/src/parsing/entry.rs +++ b/src/parsing/entry.rs @@ -1,8 +1,6 @@ use x509_parser::{error::X509Error, prelude::X509Certificate}; -use super:: - structures::{parse_opaque_asn1_cert, parse_precert} -; +use super::structures::{parse_opaque_asn1_cert, parse_precert}; use crate::merkle::types::{ ChainEntry, EntryExtraData, @@ -85,7 +83,9 @@ pub fn parse_timestamped_entry( /// This function assumes a binary format for the leaf, rather than a /// base64-encoded version, so make sure to manually decode it from the HTTP /// response before use. -pub fn parse_merkle_tree_leaf(input: &[u8]) -> nom::IResult<&[u8], MerkleTreeLeaf, X509Error> { +pub fn parse_merkle_tree_leaf( + input: &[u8] +) -> nom::IResult<&[u8], MerkleTreeLeaf, X509Error> { nom::combinator::map( nom::sequence::pair( // Parse version byte diff --git a/src/parsing/structures.rs b/src/parsing/structures.rs index c18b68d..d018593 100644 --- a/src/parsing/structures.rs +++ b/src/parsing/structures.rs @@ -29,7 +29,7 @@ pub fn parse_opaque_tbs_certificate(input: &[u8]) -> X509Result /// TBSCertificate tbs_certificate; /// } PreCert; /// ``` -/// +/// /// [RFC6962]: https://datatracker.ietf.org/doc/html/rfc6962 pub fn parse_precert(input: &[u8]) -> X509Result { nom::combinator::map( @@ -42,4 +42,4 @@ pub fn parse_precert(input: &[u8]) -> X509Result { tbs_certificate } )(input) -} \ No newline at end of file +}