From 353304ca34cc53543f091e0a9163500dd8a19c31 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 12 Mar 2024 15:53:39 +0100 Subject: [PATCH] Fix tests warnings --- askama/src/error.rs | 1 + testing/tests/size_hint.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/askama/src/error.rs b/askama/src/error.rs index 406b1485..efce4b70 100644 --- a/askama/src/error.rs +++ b/askama/src/error.rs @@ -90,6 +90,7 @@ impl From<::serde_yaml::Error> for Error { mod tests { use super::Error; + #[allow(dead_code)] trait AssertSendSyncStatic: Send + Sync + 'static {} impl AssertSendSyncStatic for Error {} } diff --git a/testing/tests/size_hint.rs b/testing/tests/size_hint.rs index a9f84286..26e5c9f2 100644 --- a/testing/tests/size_hint.rs +++ b/testing/tests/size_hint.rs @@ -3,6 +3,7 @@ use askama::Template; macro_rules! test_size { ($source:literal, $expected:expr) => {{ #[derive(Template)] + #[allow(dead_code)] #[template(source = $source, ext = "txt")] struct T(bool);