Fix a clippy::needless-borrow warning in askama_shared
@@ -200,7 +200,7 @@ struct RawConfig<'d> {
impl<'d> RawConfig<'d> {
#[cfg(feature = "config")]
fn from_toml_str(s: &str) -> std::result::Result<RawConfig<'_>, 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))
})
}
