diff --git a/src/api/endpoints.rs b/src/api/endpoints.rs index 528d01d..72eb23c 100644 --- a/src/api/endpoints.rs +++ b/src/api/endpoints.rs @@ -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. /// ``` -pub const GET_STH: Endpoint = (reqwest::Method::GET, "/ct/v1/get-sth"); \ No newline at end of file +pub const GET_STH: Endpoint = (reqwest::Method::GET, "/ct/v1/get-sth"); diff --git a/src/api/mod.rs b/src/api/mod.rs index 342b455..02478c9 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -78,9 +78,7 @@ impl CtApiClient { .await } - pub async fn get_signed_tree_head( - &self - ) -> reqwest::Result { + pub async fn get_signed_tree_head(&self) -> reqwest::Result { self.inner_client .request( endpoints::GET_STH.0, diff --git a/src/api/responses.rs b/src/api/responses.rs index 2a831ec..a36b683 100644 --- a/src/api/responses.rs +++ b/src/api/responses.rs @@ -23,7 +23,7 @@ pub struct AddChainResponse { } /// A response given when fetching the Signed Tree Head of a CT log -/// +/// /// See: [`super::endpoints::GET_STH`] #[derive(Debug, Deserialize)] pub struct GetSthResponse {