diff --git a/crates/gpui2/src/element.rs b/crates/gpui2/src/element.rs index bdb63d084e..73ea66042e 100644 --- a/crates/gpui2/src/element.rs +++ b/crates/gpui2/src/element.rs @@ -193,11 +193,7 @@ impl Element for Component { ((), element_state) }); } else { - element.paint( - bounds, - state.rendered_element_state.as_mut().unwrap(), - cx, - ); + element.paint(bounds, state.rendered_element_state.as_mut().unwrap(), cx); } } } diff --git a/crates/gpui2/src/scene.rs b/crates/gpui2/src/scene.rs index 7640b9b2d3..e922c11f53 100644 --- a/crates/gpui2/src/scene.rs +++ b/crates/gpui2/src/scene.rs @@ -27,8 +27,6 @@ pub(crate) struct SceneBuilder { surfaces: Vec, } - - impl SceneBuilder { pub fn build(&mut self) -> Scene { let mut orders = vec![0; self.layers_by_order.len()]; diff --git a/crates/gpui2/src/taffy.rs b/crates/gpui2/src/taffy.rs index 0a8a470289..0ebd394217 100644 --- a/crates/gpui2/src/taffy.rs +++ b/crates/gpui2/src/taffy.rs @@ -29,8 +29,7 @@ pub struct TaffyLayoutEngine { >, } -static EXPECT_MESSAGE: &str = - "we should avoid taffy layout errors by construction if possible"; +static EXPECT_MESSAGE: &str = "we should avoid taffy layout errors by construction if possible"; impl TaffyLayoutEngine { pub fn new() -> Self { diff --git a/crates/gpui2/src/text_system.rs b/crates/gpui2/src/text_system.rs index 7c3832ec12..944a9b78be 100644 --- a/crates/gpui2/src/text_system.rs +++ b/crates/gpui2/src/text_system.rs @@ -438,8 +438,7 @@ impl FontWeight { } /// Allows italic or oblique faces to be selected. -#[derive(Clone, Copy, Eq, PartialEq, Debug, Hash)] -#[derive(Default)] +#[derive(Clone, Copy, Eq, PartialEq, Debug, Hash, Default)] pub enum FontStyle { /// A face that is neither italic not obliqued. #[default] @@ -450,8 +449,6 @@ pub enum FontStyle { Oblique, } - - impl Display for FontStyle { fn fmt(&self, f: &mut Formatter) -> fmt::Result { Debug::fmt(self, f)