Skip to content

Commit 51efff8

Browse files
authored
Merge pull request #271 from pietroalbini/woops
Fix broken code in release builds
2 parents 5434906 + 9f2df70 commit 51efff8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/assets.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,10 @@ fn build_tera_cache() -> Result<Tera> {
124124
Ok(tera)
125125
}
126126

127+
#[allow(unused_variables)]
127128
pub fn render_template<C: Serialize>(name: &str, context: &C) -> Result<String> {
128129
// On debug builds the cache is rebuilt every time to pick up changed templates
129-
let tera_owned;
130+
let tera_owned: Tera;
130131
let tera;
131132

132133
#[cfg(debug_assertions)]

0 commit comments

Comments
 (0)