mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix warnings in components/layout_2020
(#31611)
* clippy: fix warnings in components/layout_2020 * fix: review comments
This commit is contained in:
parent
1d1f239ecc
commit
b03411f567
17 changed files with 59 additions and 69 deletions
|
@ -117,7 +117,7 @@ impl Tag {
|
|||
self.pseudo.is_some()
|
||||
}
|
||||
|
||||
pub(crate) fn to_display_list_fragment_id(&self) -> u64 {
|
||||
pub(crate) fn to_display_list_fragment_id(self) -> u64 {
|
||||
let fragment_type = match self.pseudo {
|
||||
Some(PseudoElement::Before) => FragmentType::BeforePseudoContent,
|
||||
Some(PseudoElement::After) => FragmentType::AfterPseudoContent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue