aboutsummaryrefslogtreecommitdiffstats
path: root/askama_mendes
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-01-30 09:51:23 +0100
committerLibravatar GitHub <noreply@github.com>2023-01-30 09:51:23 +0100
commit3003d86264680433e789d2726d0d12d2c6267c40 (patch)
treec7e74c13df73d05ec75ee8feec6416733e1de141 /askama_mendes
parent23326b4765b04cb13dd6c72f2103ff9bd6d44d7d (diff)
downloadaskama-3003d86264680433e789d2726d0d12d2c6267c40.tar.gz
askama-3003d86264680433e789d2726d0d12d2c6267c40.tar.bz2
askama-3003d86264680433e789d2726d0d12d2c6267c40.zip
Apply clippy suggestions for 1.67 (#769)
Diffstat (limited to '')
-rw-r--r--askama_mendes/Cargo.toml3
-rw-r--r--askama_mendes/tests/basic.rs4
2 files changed, 4 insertions, 3 deletions
diff --git a/askama_mendes/Cargo.toml b/askama_mendes/Cargo.toml
index 661acdd..06fed2f 100644
--- a/askama_mendes/Cargo.toml
+++ b/askama_mendes/Cargo.toml
@@ -10,7 +10,8 @@ repository = "https://github.com/djc/askama"
license = "MIT OR Apache-2.0"
workspace = ".."
readme = "README.md"
-edition = "2018"
+edition = "2021"
+rust-version = "1.58"
[dependencies]
askama = { version = "0.11.2", path = "../askama", default-features = false, features = ["with-mendes", "mime", "mime_guess"] }
diff --git a/askama_mendes/tests/basic.rs b/askama_mendes/tests/basic.rs
index c9ef810..6ab1d6d 100644
--- a/askama_mendes/tests/basic.rs
+++ b/askama_mendes/tests/basic.rs
@@ -71,8 +71,8 @@ impl From<mendes::Error> for Error {
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
- Error::Askama(e) => write!(f, "{}", e),
- Error::Mendes(e) => write!(f, "{}", e),
+ Error::Askama(e) => write!(f, "{e}"),
+ Error::Mendes(e) => write!(f, "{e}"),
}
}
}