diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-15 14:04:50 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-15 14:04:50 +0100 |
commit | add04785cf87973cfc37ea208e53e4c63ced6bb9 (patch) | |
tree | a6c3e5abcf634cdc95ed2229ed60e1bab7a01f57 /askama_shared/src | |
parent | 811f28c1f46a19f2d95d292efaef69bdeb574bfa (diff) | |
download | askama-add04785cf87973cfc37ea208e53e4c63ced6bb9.tar.gz askama-add04785cf87973cfc37ea208e53e4c63ced6bb9.tar.bz2 askama-add04785cf87973cfc37ea208e53e4c63ced6bb9.zip |
Remove unnecessary explicit lifetimes
Diffstat (limited to 'askama_shared/src')
-rw-r--r-- | askama_shared/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)) } |