diff --git a/src/config.rs b/src/config.rs index 5a639ca..aee0060 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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)] diff --git a/src/main.rs b/src/main.rs index 4566f7a..2fd9480 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,7 +30,7 @@ fn api_client(api_key: &str) -> anyhow::Result { 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)]