You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we cannot create const SELECTOR: Selector = ... object, due to Selector::parse not being const.
This in turn would require cssparser::Tokenizer::new() and cssparser::Tokenizer::with_first_line_number() to be const as well.
I think that this would be possible to do.
The text was updated successfully, but these errors were encountered:
OnceCell is now part of the standard library: rust-lang/rfcs#2788
I think this should be considered the solution to this issue, since we cannot make Selector const-creatable
Currently we cannot create
const SELECTOR: Selector = ...
object, due toSelector::parse
not being const.This in turn would require
cssparser::Tokenizer::new()
andcssparser::Tokenizer::with_first_line_number()
to be const as well.I think that this would be possible to do.
The text was updated successfully, but these errors were encountered: