From c1fa2d61468aa3591c4d6a259aa1e486eb936da9 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Thu, 1 Jul 2021 09:53:29 +0200 Subject: Fix a clippy::needless-borrow warning in askama_shared --- askama_shared/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared') diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index 290ca19..0b1f375 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -200,7 +200,7 @@ struct RawConfig<'d> { impl<'d> RawConfig<'d> { #[cfg(feature = "config")] fn from_toml_str(s: &str) -> std::result::Result, CompileError> { - toml::from_str(&s).map_err(|e| { + toml::from_str(s).map_err(|e| { CompileError::String(format!("invalid TOML in {}: {}", CONFIG_FILE_NAME, e)) }) } -- cgit