diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-10-26 18:31:03 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-10-26 18:31:03 +0200 |
commit | 2b94c79d5a6640e865a287744bfc4065dd191e19 (patch) | |
tree | c8b50da9eae353d7bad0b879dfc69f1099758c7e | |
parent | 529f33eb6f55c6ed35fafaaa055dfe0640e505d5 (diff) | |
download | servo-2b94c79d5a6640e865a287744bfc4065dd191e19.tar.gz servo-2b94c79d5a6640e865a287744bfc4065dd191e19.zip |
style: inline a local-variable which is no longer used more than once.
-rw-r--r-- | components/selectors/matching.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/selectors/matching.rs b/components/selectors/matching.rs index b73659b6a53..d55fdae9d90 100644 --- a/components/selectors/matching.rs +++ b/components/selectors/matching.rs @@ -550,8 +550,7 @@ where }; let combinator = selector_iter.next_sequence(); - let siblings = combinator.map_or(false, |c| c.is_sibling()); - if siblings { + if combinator.map_or(false, |c| c.is_sibling()) { flags_setter(element, HAS_SLOW_SELECTOR_LATER_SIBLINGS); } |