diff --git a/Cargo.lock b/Cargo.lock index 76d04eb..880a7ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -163,9 +163,9 @@ checksum = "7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236" [[package]] name = "askama" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d4744ed2eef2645831b441d8f5459689ade2ab27c854488fbab1fbe94fce1a7" +checksum = "f75363874b771be265f4ffe307ca705ef6f3baa19011c149da8674a87f1b75c4" dependencies = [ "askama_derive", "itoa", @@ -176,9 +176,9 @@ dependencies = [ [[package]] name = "askama_derive" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d661e0f57be36a5c14c48f78d09011e67e0cb618f269cca9f2fd8d15b68c46ac" +checksum = "129397200fe83088e8a68407a8e2b1f826cf0086b21ccdb866a722c8bcd3a94f" dependencies = [ "askama_parser", "basic-toml", @@ -193,9 +193,9 @@ dependencies = [ [[package]] name = "askama_parser" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf315ce6524c857bb129ff794935cf6d42c82a6cff60526fe2a63593de4d0d4f" +checksum = "d6ab5630b3d5eaf232620167977f95eb51f3432fc76852328774afbd242d4358" dependencies = [ "memchr", "serde", diff --git a/template/Cargo.toml b/template/Cargo.toml index 93b0d0c..a356ccd 100644 --- a/template/Cargo.toml +++ b/template/Cargo.toml @@ -9,7 +9,7 @@ license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -askama = { version = "0.13", features = ["serde_json"] } +askama = { version = "0.14", features = ["serde_json"] } blue-build-recipe = { version = "=0.9.11", path = "../recipe" } blue-build-utils = { version = "=0.9.11", path = "../utils" } diff --git a/template/src/lib.rs b/template/src/lib.rs index cb51328..1c339eb 100644 --- a/template/src/lib.rs +++ b/template/src/lib.rs @@ -150,8 +150,10 @@ fn should_color() -> bool { } mod filters { + use askama::Values; + #[allow(clippy::unnecessary_wraps)] - pub fn replace(input: T, from: char, to: &str) -> askama::Result + pub fn replace(input: T, _: &dyn Values, from: char, to: &str) -> askama::Result where T: std::fmt::Display, {