Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix the formatting

Kirill Bulatov27d2accb517f
diff --git a/crates/gpui2/src/color.rs b/crates/gpui2/src/color.rs
index f8ae1567e33..db072594760 100644
--- a/crates/gpui2/src/color.rs
+++ b/crates/gpui2/src/color.rs
@@ -60,7 +60,6 @@ impl From<Rgba> for u32 {
}
}
-
struct RgbaVisitor;
impl<'de> Visitor<'de> for RgbaVisitor {
@@ -157,10 +156,8 @@ impl Hsla {
}
}
-
impl Eq for Hsla {}
-
pub fn hsla(h: f32, s: f32, l: f32, a: f32) -> Hsla {
Hsla {
h: h.clamp(0., 1.),
diff --git a/crates/gpui2/src/svg_renderer.rs b/crates/gpui2/src/svg_renderer.rs
index 8fc68ede45e..96e6658ab1e 100644
--- a/crates/gpui2/src/svg_renderer.rs
+++ b/crates/gpui2/src/svg_renderer.rs
@@ -1,4 +1,4 @@
-use crate::{DevicePixels, IsZero, Result, SharedString, Size, AssetSource};
+use crate::{AssetSource, DevicePixels, IsZero, Result, SharedString, Size};
use anyhow::anyhow;
use std::{hash::Hash, sync::Arc};
diff --git a/crates/ui2/src/components/workspace.rs b/crates/ui2/src/components/workspace.rs
index ee913cb6931..e31b21e592b 100644
--- a/crates/ui2/src/components/workspace.rs
+++ b/crates/ui2/src/components/workspace.rs
@@ -3,13 +3,13 @@ use std::sync::Arc;
use chrono::DateTime;
use gpui2::{px, relative, rems, view, Context, Size, View};
-use crate::{prelude::*, NotificationsPanel};
use crate::{
- static_livestream, old_theme, user_settings_mut, v_stack, AssistantPanel, Button, ChatMessage,
+ old_theme, static_livestream, user_settings_mut, v_stack, AssistantPanel, Button, ChatMessage,
ChatPanel, CollabPanel, EditorPane, FakeSettings, Label, LanguageSelector, Pane, PaneGroup,
Panel, PanelAllowedSides, PanelSide, ProjectPanel, SettingValue, SplitDirection, StatusBar,
Terminal, TitleBar, Toast, ToastOrigin,
};
+use crate::{prelude::*, NotificationsPanel};
#[derive(Clone)]
pub struct Gpui2UiDebug {