diff options
author | Matthew Taylor <wrapperup4@gmail.com> | 2023-07-14 05:36:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-14 11:36:20 +0200 |
commit | 9de9af4a006021a63f705e420be4cdef3eb6af82 (patch) | |
tree | 9beb77ea8fae02921d61335acfdd4d6089b92375 | |
parent | b9e51601560398766eac445517fb17c35090a952 (diff) | |
download | askama-9de9af4a006021a63f705e420be4cdef3eb6af82.tar.gz askama-9de9af4a006021a63f705e420be4cdef3eb6af82.tar.bz2 askama-9de9af4a006021a63f705e420be4cdef3eb6af82.zip |
fix clippy::items-after-test-module error (#839)
-rw-r--r-- | askama/src/lib.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/askama/src/lib.rs b/askama/src/lib.rs index 8806490..a98989e 100644 --- a/askama/src/lib.rs +++ b/askama/src/lib.rs @@ -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)] mod tests { use std::fmt; @@ -217,12 +226,3 @@ mod tests { 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() {} |