From feb0a31bbaefa94ba63340babc3b2d918a71b5a6 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 11 Jan 2020 13:06:48 +1000 Subject: [PATCH] static->const --- rslib/src/template_filters.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rslib/src/template_filters.rs b/rslib/src/template_filters.rs index 0884adce8..19951ba57 100644 --- a/rslib/src/template_filters.rs +++ b/rslib/src/template_filters.rs @@ -113,17 +113,17 @@ lazy_static! { mod cloze_caps { // cloze ordinal - pub static ORD: usize = 1; + pub const ORD: usize = 1; // the occluded text - pub static TEXT: usize = 2; + pub const TEXT: usize = 2; // optional hint - pub static HINT: usize = 3; + pub const HINT: usize = 3; } mod mathjax_caps { - pub static OPENING_TAG: usize = 1; - pub static INNER_TEXT: usize = 2; - pub static CLOSING_TAG: usize = 3; + pub const OPENING_TAG: usize = 1; + pub const INNER_TEXT: usize = 2; + pub const CLOSING_TAG: usize = 3; } fn reveal_cloze_text(text: &str, ord: u16, question: bool) -> Cow {