removed unneccessary return statements

This commit is contained in:
jannikac 2022-12-06 23:17:47 +01:00
parent 90e405e133
commit d671829890
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ pub struct Entry {
} }
fn default_ttl() -> u32 { fn default_ttl() -> u32 {
return 300; 300
} }
#[derive(Deserialize, PartialEq, Debug)] #[derive(Deserialize, PartialEq, Debug)]
@ -112,7 +112,7 @@ pub fn validate_config(config: &Config) -> anyhow::Result<()> {
} }
} }
} }
return Ok(()); Ok(())
} }
#[cfg(test)] #[cfg(test)]

View file

@ -30,7 +30,7 @@ fn api_client(api_key: &str) -> anyhow::Result<Client> {
let accept_value = header::HeaderValue::from_static("application/json"); let accept_value = header::HeaderValue::from_static("application/json");
headers.insert(header::ACCEPT, accept_value); headers.insert(header::ACCEPT, accept_value);
let client = client_builder.default_headers(headers).build()?; let client = client_builder.default_headers(headers).build()?;
return Ok(client); Ok(client)
} }
#[derive(Serialize)] #[derive(Serialize)]