From 31651405b22692d863777c276af25724cf359cba Mon Sep 17 00:00:00 2001 From: jannikac Date: Tue, 6 Dec 2022 23:15:10 +0100 Subject: [PATCH] removed unneeded lifetimes --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index c5694f4..2b489ce 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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() } }