diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2022-05-18 13:36:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 13:36:16 +0200 |
commit | c78c1dfc25a8bbc6a1ceffbce31f102e9afc8007 (patch) | |
tree | 7edfab19644f5d500991180c531a70ed0614bca4 | |
parent | ea66be1925456285f897bc00a076e4e7af94c313 (diff) | |
download | askama-c78c1dfc25a8bbc6a1ceffbce31f102e9afc8007.tar.gz askama-c78c1dfc25a8bbc6a1ceffbce31f102e9afc8007.tar.bz2 askama-c78c1dfc25a8bbc6a1ceffbce31f102e9afc8007.zip |
Fix nightly clippy warning (#684)
-rw-r--r-- | askama_shared/src/filters/mod.rs | 4 |
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) |