aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2021-07-01 09:53:29 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2021-07-01 10:20:56 +0200
commitc1fa2d61468aa3591c4d6a259aa1e486eb936da9 (patch)
tree48c6719d0f91485e75cdb8428b0a48543b8e511a /askama_shared/src
parent017b5901fb27f12c0a51738ec5f0a992e0316d8c (diff)
downloadaskama-c1fa2d61468aa3591c4d6a259aa1e486eb936da9.tar.gz
askama-c1fa2d61468aa3591c4d6a259aa1e486eb936da9.tar.bz2
askama-c1fa2d61468aa3591c4d6a259aa1e486eb936da9.zip
Fix a clippy::needless-borrow warning in askama_shared
Diffstat (limited to '')
-rw-r--r--askama_shared/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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<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))
})
}