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

View file

@ -29,7 +29,7 @@ pub fn parse_opaque_tbs_certificate(input: &[u8]) -> X509Result<TbsCertificate>
/// TBSCertificate tbs_certificate;
/// } PreCert;
/// ```
///
///
/// [RFC6962]: https://datatracker.ietf.org/doc/html/rfc6962
pub fn parse_precert(input: &[u8]) -> X509Result<PreCert> {
nom::combinator::map(
@ -42,4 +42,4 @@ pub fn parse_precert(input: &[u8]) -> X509Result<PreCert> {
tbs_certificate
}
)(input)
}
}