mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 15:25:19 +00:00
fix clippy::items-after-test-module error (#839)
This commit is contained in:
parent
b9e5160156
commit
9de9af4a00
@ -171,6 +171,15 @@ impl fmt::Display for dyn DynTemplate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Old build script helper to rebuild crates if contained templates have changed
|
||||||
|
///
|
||||||
|
/// This function is now deprecated and does nothing.
|
||||||
|
#[deprecated(
|
||||||
|
since = "0.8.1",
|
||||||
|
note = "file-level dependency tracking is handled automatically without build script"
|
||||||
|
)]
|
||||||
|
pub fn rerun_if_templates_changed() {}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
@ -217,12 +226,3 @@ mod tests {
|
|||||||
assert_eq!(vec, vec![b't', b'e', b's', b't']);
|
assert_eq!(vec, vec![b't', b'e', b's', b't']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Old build script helper to rebuild crates if contained templates have changed
|
|
||||||
///
|
|
||||||
/// This function is now deprecated and does nothing.
|
|
||||||
#[deprecated(
|
|
||||||
since = "0.8.1",
|
|
||||||
note = "file-level dependency tracking is handled automatically without build script"
|
|
||||||
)]
|
|
||||||
pub fn rerun_if_templates_changed() {}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user