mirror of
https://github.com/SeriousBug/gandi-live-dns-rust
synced 2024-11-13 19:17:26 -06:00
removed unneeded lifetimes
This commit is contained in:
parent
35d60f0b29
commit
31651405b2
|
@ -47,7 +47,7 @@ pub struct Config {
|
|||
pub ttl: u32,
|
||||
}
|
||||
|
||||
const DEFAULT_TYPES: &'static [&'static str] = &["A"];
|
||||
const DEFAULT_TYPES: &[&str] = &["A"];
|
||||
|
||||
impl Config {
|
||||
pub fn fqdn<'c>(entry: &'c Entry, config: &'c Config) -> &'c str {
|
||||
|
@ -58,7 +58,7 @@ impl Config {
|
|||
entry.ttl.unwrap_or(config.ttl)
|
||||
}
|
||||
|
||||
pub fn types<'e>(entry: &'e Entry) -> Vec<&'e str> {
|
||||
pub fn types(entry: &Entry) -> Vec<&str> {
|
||||
entry.types.iter().map(|t| t.as_str()).collect()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue