chore: Reformat

This commit is contained in:
Tyler Beckman 2024-10-26 23:19:48 -06:00
parent f888aa47d0
commit 84aa99f261
Signed by: Ty
GPG key ID: 2813440C772555A4
2 changed files with 6 additions and 6 deletions

View file

@ -1,8 +1,6 @@
use x509_parser::{error::X509Error, prelude::X509Certificate}; use x509_parser::{error::X509Error, prelude::X509Certificate};
use super:: use super::structures::{parse_opaque_asn1_cert, parse_precert};
structures::{parse_opaque_asn1_cert, parse_precert}
;
use crate::merkle::types::{ use crate::merkle::types::{
ChainEntry, ChainEntry,
EntryExtraData, EntryExtraData,
@ -85,7 +83,9 @@ pub fn parse_timestamped_entry(
/// This function assumes a binary format for the leaf, rather than a /// 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 /// base64-encoded version, so make sure to manually decode it from the HTTP
/// response before use. /// 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::combinator::map(
nom::sequence::pair( nom::sequence::pair(
// Parse version byte // Parse version byte