chore: Reformat
This commit is contained in:
parent
a563e46162
commit
43b4220de2
3 changed files with 3 additions and 5 deletions
|
@ -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");
|
||||
pub const GET_STH: Endpoint = (reqwest::Method::GET, "/ct/v1/get-sth");
|
||||
|
|
|
@ -78,9 +78,7 @@ impl CtApiClient {
|
|||
.await
|
||||
}
|
||||
|
||||
pub async fn get_signed_tree_head(
|
||||
&self
|
||||
) -> reqwest::Result<GetSthResponse> {
|
||||
pub async fn get_signed_tree_head(&self) -> reqwest::Result<GetSthResponse> {
|
||||
self.inner_client
|
||||
.request(
|
||||
endpoints::GET_STH.0,
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue