Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selectors: Fix some unused mut warnings. #18089

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -456,11 +456,12 @@ where
}

/// Matches a complex selector.
pub fn matches_complex_selector<E, F>(mut iter: SelectorIter<E::Impl>,
element: &E,
mut context: &mut LocalMatchingContext<E::Impl>,
flags_setter: &mut F)
-> bool
pub fn matches_complex_selector<E, F>(
mut iter: SelectorIter<E::Impl>,
element: &E,
context: &mut LocalMatchingContext<E::Impl>,
flags_setter: &mut F,
) -> bool
where E: Element,
F: FnMut(&E, ElementSelectorFlags),
{
@@ -1464,9 +1464,11 @@ fn parse_negation<'i, 't, P, E, Impl>(parser: &P,
fn parse_compound_selector<'i, 't, P, E, Impl>(
parser: &P,
input: &mut CssParser<'i, 't>,
mut builder: &mut SelectorBuilder<Impl>)
-> Result<bool, ParseError<'i, SelectorParseError<'i, E>>>
where P: Parser<'i, Impl=Impl, Error=E>, Impl: SelectorImpl
builder: &mut SelectorBuilder<Impl>,
) -> Result<bool, ParseError<'i, SelectorParseError<'i, E>>>
where
P: Parser<'i, Impl=Impl, Error=E>,
Impl: SelectorImpl,
{
// Consume any leading whitespace.
loop {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.