From 413a68d8b29bcfe756fd056cb57032bce6714b6e Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Fri, 6 May 2022 22:55:18 +0200 Subject: [PATCH] Fix tests --- Cargo.lock | 16 ++++++++-------- components/markdown/tests/common.rs | 4 +--- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 473691ad..91e8a1f1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -312,9 +312,9 @@ dependencies = [ [[package]] name = "clap" -version = "3.1.15" +version = "3.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85a35a599b11c089a7f49105658d089b8f2cf0882993c17daf6de15285c2c35d" +checksum = "47582c09be7c8b32c0ab3a6181825ababb713fde6fff20fc573a3870dd45c6a0" dependencies = [ "atty", "bitflags", @@ -329,11 +329,11 @@ dependencies = [ [[package]] name = "clap_complete" -version = "3.1.3" +version = "3.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d7ca9141e27e6ebc52e3c378b0c07f3cea52db46ed1cc5861735fb697b56356" +checksum = "da92e6facd8d73c22745a5d3cbb59bdf8e46e3235c923e516527d8e81eec14a4" dependencies = [ - "clap 3.1.15", + "clap 3.1.17", ] [[package]] @@ -2306,9 +2306,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.37" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1" +checksum = "9027b48e9d4c9175fa2218adf3557f91c1137021739951d4932f5f8268ac48aa" dependencies = [ "unicode-xid", ] @@ -3812,7 +3812,7 @@ name = "zola" version = "0.16.0" dependencies = [ "atty", - "clap 3.1.15", + "clap 3.1.17", "clap_complete", "ctrlc", "errors", diff --git a/components/markdown/tests/common.rs b/components/markdown/tests/common.rs index ae09cd38..fff4b714 100644 --- a/components/markdown/tests/common.rs +++ b/components/markdown/tests/common.rs @@ -1,7 +1,6 @@ #![allow(dead_code)] use std::collections::HashMap; -use std::path::PathBuf; use libs::tera::Tera; @@ -58,8 +57,7 @@ fn configurable_render( tera.register_filter( "markdown", - templates::filters::MarkdownFilter::new(PathBuf::new(), config.clone(), permalinks.clone()) - .unwrap(), + templates::filters::MarkdownFilter::new(config.clone(), permalinks.clone(), tera.clone()) ); let mut context = RenderContext::new( &tera,