diff --git a/unit-gen/src/parser.rs b/unit-gen/src/parser.rs index cbd4d1d..7de18bf 100644 --- a/unit-gen/src/parser.rs +++ b/unit-gen/src/parser.rs @@ -16,7 +16,7 @@ use std::cell::RefCell; use std::str::FromStr; thread_local! { - pub (super) static QUANTITY: RefCell> = RefCell::new(None); + pub (super) static QUANTITY: RefCell> = const { RefCell::new(None) }; } fn parse_space<'a>() -> Parser<'a, u8, ()> {