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 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
|
||||||
|
|
Loading…
Reference in a new issue