mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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 => {
|
||||
|
|
|
@ -10,6 +10,7 @@ use app_units::Au;
|
|||
use log::warn;
|
||||
use rayon::iter::{IndexedParallelIterator, IntoParallelRefIterator, ParallelIterator};
|
||||
use servo_arc::Arc;
|
||||
use style::Zero;
|
||||
use style::computed_values::border_collapse::T as BorderCollapse;
|
||||
use style::computed_values::box_sizing::T as BoxSizing;
|
||||
use style::computed_values::caption_side::T as CaptionSide;
|
||||
|
@ -22,7 +23,6 @@ use style::values::computed::{
|
|||
BorderStyle, LengthPercentage as ComputedLengthPercentage, Percentage,
|
||||
};
|
||||
use style::values::generics::box_::{GenericVerticalAlign as VerticalAlign, VerticalAlignKeyword};
|
||||
use style::Zero;
|
||||
|
||||
use super::{
|
||||
ArcRefCell, CollapsedBorder, CollapsedBorderLine, SpecificTableGridInfo, Table, TableCaption,
|
||||
|
@ -38,7 +38,7 @@ use crate::geom::{
|
|||
LogicalRect, LogicalSides, LogicalVec2, PhysicalPoint, PhysicalRect, PhysicalSides,
|
||||
PhysicalVec, Size, SizeConstraint, ToLogical, ToLogicalWithContainingBlock,
|
||||
};
|
||||
use crate::positioned::{relative_adjustement, PositioningContext, PositioningContextLength};
|
||||
use crate::positioned::{PositioningContext, PositioningContextLength, relative_adjustement};
|
||||
use crate::sizing::{ComputeInlineContentSizes, ContentSizes, InlineContentSizesResult};
|
||||
use crate::style_ext::{
|
||||
BorderStyleColor, Clamp, ComputedValuesExt, LayoutStyle, PaddingBorderMargin,
|
||||
|
|
|
@ -75,8 +75,8 @@ pub(crate) use construct::AnonymousTableContent;
|
|||
pub use construct::TableBuilder;
|
||||
use euclid::{Point2D, Size2D, UnknownUnit, Vector2D};
|
||||
use servo_arc::Arc;
|
||||
use style::properties::style_structs::Font;
|
||||
use style::properties::ComputedValues;
|
||||
use style::properties::style_structs::Font;
|
||||
use style_traits::dom::OpaqueNode;
|
||||
|
||||
use super::flow::BlockFormattingContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue