removed unneccessary return statements
This commit is contained in:
parent
90e405e133
commit
d671829890
|
@ -18,7 +18,7 @@ pub struct Entry {
|
|||
}
|
||||
|
||||
fn default_ttl() -> u32 {
|
||||
return 300;
|
||||
300
|
||||
}
|
||||
|
||||
#[derive(Deserialize, PartialEq, Debug)]
|
||||
|
@ -112,7 +112,7 @@ pub fn validate_config(config: &Config) -> anyhow::Result<()> {
|
|||
}
|
||||
}
|
||||
}
|
||||
return Ok(());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
|
@ -30,7 +30,7 @@ fn api_client(api_key: &str) -> anyhow::Result<Client> {
|
|||
let accept_value = header::HeaderValue::from_static("application/json");
|
||||
headers.insert(header::ACCEPT, accept_value);
|
||||
let client = client_builder.default_headers(headers).build()?;
|
||||
return Ok(client);
|
||||
Ok(client)
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
|
|
Loading…
Reference in New Issue