mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 15:25:19 +00:00
Fix tests warnings
This commit is contained in:
parent
3026829889
commit
353304ca34
@ -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 {}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user