From add04785cf87973cfc37ea208e53e4c63ced6bb9 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 15 Jan 2020 14:04:50 +0100 Subject: Remove unnecessary explicit lifetimes --- askama_shared/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared/src') diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index dccec59..8a64c22 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -186,7 +186,7 @@ struct RawConfig<'d> { impl<'d> RawConfig<'d> { #[cfg(feature = "config")] - fn from_toml_str<'n>(s: &'n str) -> RawConfig<'n> { + fn from_toml_str(s: &str) -> RawConfig<'_> { toml::from_str(&s).unwrap_or_else(|_| panic!("invalid TOML in {}", CONFIG_FILE_NAME)) } -- cgit