Oriol Brufau 2024-04-10 15:03:56 +02:00 committed by GitHub
parent 89a4820519
commit 5acfce5b89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 88 additions and 274 deletions

View file

@ -67,7 +67,7 @@ fn get_mock_rules(css_selectors: &[&str]) -> (Vec<Vec<Rule>>, SharedRwLock) {
let guard = shared_lock.read();
let rule = locked.read_with(&guard);
rule.selectors
.0
.slice()
.iter()
.map(|s| {
Rule::new(
@ -93,10 +93,11 @@ fn parse_selectors(selectors: &[&str]) -> Vec<Selector<SelectorImpl>> {
.map(|x| {
SelectorParser::parse_author_origin_no_namespace(x, &dummy_url_data)
.unwrap()
.0
.slice()
.into_iter()
.next()
.unwrap()
.clone()
})
.collect()
}