From d671829890646518a628dcccbfe640fd82e44808 Mon Sep 17 00:00:00 2001 From: jannikac Date: Tue, 6 Dec 2022 23:17:47 +0100 Subject: [PATCH] removed unneccessary return statements --- src/config.rs | 4 ++-- src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)]