chore: Reformat

This commit is contained in:
Tyler Beckman 2024-10-27 14:48:08 -06:00
parent a563e46162
commit 43b4220de2
Signed by: Ty
GPG key ID: 2813440C772555A4
3 changed files with 3 additions and 5 deletions

View file

@ -77,4 +77,4 @@ pub const ADD_PRE_CHAIN: Endpoint = (reqwest::Method::POST, "/ct/v1/add-pre-chai
/// ///
/// tree_head_signature: A TreeHeadSignature for the above data. /// tree_head_signature: A TreeHeadSignature for the above data.
/// ``` /// ```
pub const GET_STH: Endpoint = (reqwest::Method::GET, "/ct/v1/get-sth"); pub const GET_STH: Endpoint = (reqwest::Method::GET, "/ct/v1/get-sth");

View file

@ -78,9 +78,7 @@ impl CtApiClient {
.await .await
} }
pub async fn get_signed_tree_head( pub async fn get_signed_tree_head(&self) -> reqwest::Result<GetSthResponse> {
&self
) -> reqwest::Result<GetSthResponse> {
self.inner_client self.inner_client
.request( .request(
endpoints::GET_STH.0, endpoints::GET_STH.0,

View file

@ -23,7 +23,7 @@ pub struct AddChainResponse {
} }
/// A response given when fetching the Signed Tree Head of a CT log /// A response given when fetching the Signed Tree Head of a CT log
/// ///
/// See: [`super::endpoints::GET_STH`] /// See: [`super::endpoints::GET_STH`]
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
pub struct GetSthResponse { pub struct GetSthResponse {