Fix tests warnings

This commit is contained in:
Guillaume Gomez 2024-03-12 15:53:39 +01:00
parent 3026829889
commit 353304ca34
2 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,7 @@ impl From<::serde_yaml::Error> for Error {
mod tests { mod tests {
use super::Error; use super::Error;
#[allow(dead_code)]
trait AssertSendSyncStatic: Send + Sync + 'static {} trait AssertSendSyncStatic: Send + Sync + 'static {}
impl AssertSendSyncStatic for Error {} impl AssertSendSyncStatic for Error {}
} }

View File

@ -3,6 +3,7 @@ use askama::Template;
macro_rules! test_size { macro_rules! test_size {
($source:literal, $expected:expr) => {{ ($source:literal, $expected:expr) => {{
#[derive(Template)] #[derive(Template)]
#[allow(dead_code)]
#[template(source = $source, ext = "txt")] #[template(source = $source, ext = "txt")]
struct T(bool); struct T(bool);