aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_shared/src/filters/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_shared/src/filters/mod.rs b/askama_shared/src/filters/mod.rs
index fd26dc1..6437ce0 100644
--- a/askama_shared/src/filters/mod.rs
+++ b/askama_shared/src/filters/mod.rs
@@ -5,7 +5,7 @@
//! For more information, read the [book](https://djc.github.io/askama/filters.html).
#![allow(clippy::trivially_copy_pass_by_ref)]
-use std::fmt;
+use std::fmt::{self, Write};
#[cfg(feature = "serde_json")]
mod json;
@@ -313,7 +313,7 @@ where
rv.push_str(separator);
}
- rv.push_str(&format!("{}", item));
+ write!(rv, "{}", item)?;
}
Ok(rv)