Skip to content

Allow Selector to be const-creatable #141

@conqp

Description

@conqp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions