chore: Reformat
This commit is contained in:
parent
f888aa47d0
commit
84aa99f261
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue