mirror of
https://github.com/SeriousBug/gandi-live-dns-rust
synced 2024-05-18 03:09:04 -05:00
removed unneccessary return statements
This commit is contained in:
parent
90e405e133
commit
d671829890
|
@ -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)]
|
||||||
|
|
|
@ -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)]
|
||||||
|
|
Loading…
Reference in a new issue