mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update rustfmt to the 2024 style edition (#35764)
* Use 2024 style edition Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Reformat all code Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
6300e820b4
commit
3d320fa96a
603 changed files with 1739 additions and 1648 deletions
|
@ -9,8 +9,8 @@ use std::iter::repeat;
|
|||
use log::warn;
|
||||
use script_layout_interface::wrapper_traits::ThreadSafeLayoutNode;
|
||||
use servo_arc::Arc;
|
||||
use style::properties::style_structs::Font;
|
||||
use style::properties::ComputedValues;
|
||||
use style::properties::style_structs::Font;
|
||||
use style::selector_parser::PseudoElement;
|
||||
use style::str::char_is_whitespace;
|
||||
|
||||
|
@ -18,6 +18,7 @@ use super::{
|
|||
Table, TableCaption, TableSlot, TableSlotCell, TableSlotCoordinates, TableSlotOffset,
|
||||
TableTrack, TableTrackGroup, TableTrackGroupType,
|
||||
};
|
||||
use crate::PropagatedBoxTreeData;
|
||||
use crate::cell::ArcRefCell;
|
||||
use crate::context::LayoutContext;
|
||||
use crate::dom::{BoxSlot, NodeExt};
|
||||
|
@ -30,7 +31,6 @@ use crate::formatting_contexts::{
|
|||
use crate::fragment_tree::BaseFragmentInfo;
|
||||
use crate::layout_box_base::LayoutBoxBase;
|
||||
use crate::style_ext::{DisplayGeneratingBox, DisplayLayoutInternal};
|
||||
use crate::PropagatedBoxTreeData;
|
||||
|
||||
/// A reference to a slot and its coordinates in the table
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
|
@ -187,7 +187,9 @@ impl TableSlot {
|
|||
pub fn push_spanned(&mut self, new_offset: TableSlotOffset) {
|
||||
match *self {
|
||||
TableSlot::Cell { .. } => {
|
||||
panic!("Should never have a table model error with an originating cell slot overlapping a spanned slot")
|
||||
panic!(
|
||||
"Should never have a table model error with an originating cell slot overlapping a spanned slot"
|
||||
)
|
||||
},
|
||||
TableSlot::Spanned(ref mut vec) => vec.insert(0, new_offset),
|
||||
TableSlot::Empty => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue