aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/fragment.rs
diff options
context:
space:
mode:
authorSimon Wülker <simon.wuelker@arcor.de>2025-03-03 12:26:53 +0100
committerGitHub <noreply@github.com>2025-03-03 11:26:53 +0000
commit3d320fa96ae2ca95a720c454c47ee7827864c5af (patch)
tree1b7718d574cb9164d924b7571760d90d6d2099c4 /components/layout/fragment.rs
parent6300e820b4e3fbfcec260048f931528d4998d5e4 (diff)
downloadservo-3d320fa96ae2ca95a720c454c47ee7827864c5af.tar.gz
servo-3d320fa96ae2ca95a720c454c47ee7827864c5af.zip
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>
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r--components/layout/fragment.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs
index b697c7da395..3d818045203 100644
--- a/components/layout/fragment.rs
+++ b/components/layout/fragment.rs
@@ -5,7 +5,7 @@
//! The `Fragment` type, which represents the leaves of the layout tree.
use std::borrow::ToOwned;
-use std::cmp::{max, min, Ordering};
+use std::cmp::{Ordering, max, min};
use std::collections::LinkedList;
use std::sync::{Arc, Mutex};
use std::{f32, fmt};
@@ -57,7 +57,7 @@ use webrender_api::units::LayoutTransform;
use webrender_api::{self, ImageKey};
use crate::context::LayoutContext;
-use crate::display_list::items::{ClipScrollNodeIndex, OpaqueNode, BLUR_INFLATION_FACTOR};
+use crate::display_list::items::{BLUR_INFLATION_FACTOR, ClipScrollNodeIndex, OpaqueNode};
use crate::display_list::{StackingContextId, ToLayout};
use crate::floats::ClearType;
use crate::flow::{GetBaseFlow, ImmutableFlowUtils};
@@ -67,12 +67,12 @@ use crate::inline::{
LineMetrics,
};
use crate::model::{
- self, style_length, IntrinsicISizes, IntrinsicISizesContribution, MaybeAuto, SizeConstraint,
+ self, IntrinsicISizes, IntrinsicISizesContribution, MaybeAuto, SizeConstraint, style_length,
};
use crate::text::TextRunScanner;
use crate::text_run::{TextRun, TextRunSlice};
use crate::wrapper::ThreadSafeLayoutNodeHelpers;
-use crate::{text, ServoArc};
+use crate::{ServoArc, text};
// From gfxFontConstants.h in Firefox.
static FONT_SUBSCRIPT_OFFSET_RATIO: f32 = 0.20;
@@ -1649,7 +1649,7 @@ impl Fragment {
},
SpecificFragmentInfo::TruncatedFragment(_) => {
- return IntrinsicISizesContribution::new()
+ return IntrinsicISizesContribution::new();
},
SpecificFragmentInfo::UnscannedText(..) => {