From 27e5aaa77704954ebe6dd82de11b4229201cc4fb Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Mon, 28 Oct 2024 17:42:42 -0600 Subject: [PATCH] chore: Format code --- src/api/responses.rs | 4 ++-- tests/log_entry_parsing.rs | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/api/responses.rs b/src/api/responses.rs index b3623aa..a43be90 100644 --- a/src/api/responses.rs +++ b/src/api/responses.rs @@ -53,7 +53,7 @@ pub struct GetProofByHashResponse { } /// A response given when fetching CT log entries within a range -/// +/// /// See: [`super::endpoints::GET_ENTRIES`] #[derive(Debug, Deserialize)] pub struct GetEntriesResponse { @@ -65,4 +65,4 @@ pub struct GetEntriesResponse { pub struct GetEntriesResponseEntry { pub leaf_input: String, pub extra_data: String -} \ No newline at end of file +} diff --git a/tests/log_entry_parsing.rs b/tests/log_entry_parsing.rs index 8820a87..95b6ffa 100644 --- a/tests/log_entry_parsing.rs +++ b/tests/log_entry_parsing.rs @@ -2,26 +2,26 @@ use std::sync::Arc; use base64ct::Encoding; use ct::{ - api::{responses::GetEntriesResponseEntry, CtApiClient}, merkle::{ + api::{responses::GetEntriesResponseEntry, CtApiClient}, + merkle::{ consts::EXTRA_DATA_BASE64_BUFFER_SIZE, types::{MerkleLeafType, Version} - }, parsing::entry::{parse_entry_extra_data_precert, parse_entry_extra_data_x509} + }, + parsing::entry::{parse_entry_extra_data_precert, parse_entry_extra_data_x509} }; use tokio::task::JoinSet; async fn fetch_entries() -> impl Iterator { - let client = Arc::new( - CtApiClient::new_with_client( - "https://oak.ct.letsencrypt.org/2024h2/ct/v1/get-entries", - Arc::new(reqwest::Client::new()) - ) - ); + let client = Arc::new(CtApiClient::new_with_client( + "https://oak.ct.letsencrypt.org/2024h2/ct/v1/get-entries", + Arc::new(reqwest::Client::new()) + )); let mut join_set: JoinSet<_> = JoinSet::new(); for i in 0..12u64 { let client = client.clone(); join_set.spawn(async move { client - .get_log_entries(i * 256, (i+1) * 256 - 1) + .get_log_entries(i * 256, (i + 1) * 256 - 1) .await .expect("Request should succeed") });