mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 18:41:56 +03:00
cargo fmt
This commit is contained in:
parent
4af6ac25e9
commit
388c2d8e7f
@ -193,11 +193,7 @@ impl<C: RenderOnce> Element for Component<C> {
|
||||
((), 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,8 +27,6 @@ pub(crate) struct SceneBuilder {
|
||||
surfaces: Vec<Surface>,
|
||||
}
|
||||
|
||||
|
||||
|
||||
impl SceneBuilder {
|
||||
pub fn build(&mut self) -> Scene {
|
||||
let mut orders = vec![0; self.layers_by_order.len()];
|
||||
|
@ -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 {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user