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 formatting

Nathan Sobo6abaacc457ce
diff --git a/crates/storybook2/src/stories/focus.rs b/crates/storybook2/src/stories/focus.rs
index ff9a4da876a..a8794afdb86 100644
--- a/crates/storybook2/src/stories/focus.rs
+++ b/crates/storybook2/src/stories/focus.rs
@@ -1,5 +1,5 @@
use gpui::{
- actions, div, prelude::*, FocusHandle, Focusable, KeyBinding, Div, Render, Stateful, View,
+ actions, div, prelude::*, Div, FocusHandle, Focusable, KeyBinding, Render, Stateful, View,
WindowContext,
};
use theme2::ActiveTheme;
diff --git a/crates/storybook2/src/stories/picker.rs b/crates/storybook2/src/stories/picker.rs
index eb4a3b88ea5..a3f9ef5eb82 100644
--- a/crates/storybook2/src/stories/picker.rs
+++ b/crates/storybook2/src/stories/picker.rs
@@ -1,5 +1,5 @@
use fuzzy::StringMatchCandidate;
-use gpui::{div, prelude::*, KeyBinding, Div, Render, Styled, Task, View, WindowContext};
+use gpui::{div, prelude::*, Div, KeyBinding, Render, Styled, Task, View, WindowContext};
use picker::{Picker, PickerDelegate};
use std::sync::Arc;
use theme2::ActiveTheme;
diff --git a/crates/storybook2/src/stories/scroll.rs b/crates/storybook2/src/stories/scroll.rs
index c5549e56d0e..f9530269d5c 100644
--- a/crates/storybook2/src/stories/scroll.rs
+++ b/crates/storybook2/src/stories/scroll.rs
@@ -1,6 +1,4 @@
-use gpui::{
- div, prelude::*, px, Div, Render, SharedString, Stateful, Styled, View, WindowContext,
-};
+use gpui::{div, prelude::*, px, Div, Render, SharedString, Stateful, Styled, View, WindowContext};
use theme2::ActiveTheme;
pub struct ScrollStory;
diff --git a/crates/ui2/src/components/panel.rs b/crates/ui2/src/components/panel.rs
index e16f203599c..d9fc50dd923 100644
--- a/crates/ui2/src/components/panel.rs
+++ b/crates/ui2/src/components/panel.rs
@@ -126,7 +126,7 @@ pub use stories::*;
mod stories {
use super::*;
use crate::{Label, Story};
- use gpui::{InteractiveComponent, Div, Render};
+ use gpui::{Div, InteractiveComponent, Render};
pub struct PanelStory;
diff --git a/crates/ui2/src/prelude.rs b/crates/ui2/src/prelude.rs
index f37b6123e3f..09ce43d9123 100644
--- a/crates/ui2/src/prelude.rs
+++ b/crates/ui2/src/prelude.rs
@@ -1,8 +1,8 @@
use gpui::rems;
use gpui::Rems;
pub use gpui::{
- div, Component, Element, ElementId, InteractiveComponent, ParentComponent, SharedString, Styled,
- ViewContext, WindowContext,
+ div, Component, Element, ElementId, InteractiveComponent, ParentComponent, SharedString,
+ Styled, ViewContext, WindowContext,
};
pub use crate::elevation::*;
diff --git a/crates/workspace2/src/dock.rs b/crates/workspace2/src/dock.rs
index 7695cffa882..499fb0d673b 100644
--- a/crates/workspace2/src/dock.rs
+++ b/crates/workspace2/src/dock.rs
@@ -1,7 +1,7 @@
use crate::{status_bar::StatusItemView, Axis, Workspace};
use gpui::{
- div, Action, AnyView, AppContext, Entity, EntityId, EventEmitter, Div, ParentComponent,
- Render, Subscription, View, ViewContext, WeakView, WindowContext,
+ div, Action, AnyView, AppContext, Div, Entity, EntityId, EventEmitter, ParentComponent, Render,
+ Subscription, View, ViewContext, WeakView, WindowContext,
};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
diff --git a/crates/workspace2/src/modal_layer.rs b/crates/workspace2/src/modal_layer.rs
index 0703d0dc563..c9dddfdace6 100644
--- a/crates/workspace2/src/modal_layer.rs
+++ b/crates/workspace2/src/modal_layer.rs
@@ -1,5 +1,5 @@
use gpui::{
- div, prelude::*, px, AnyView, EventEmitter, FocusHandle, Div, Render, Subscription, View,
+ div, prelude::*, px, AnyView, Div, EventEmitter, FocusHandle, Render, Subscription, View,
ViewContext, WindowContext,
};
use ui::{h_stack, v_stack};
diff --git a/crates/workspace2/src/notifications.rs b/crates/workspace2/src/notifications.rs
index a17399af575..7277cc6fc47 100644
--- a/crates/workspace2/src/notifications.rs
+++ b/crates/workspace2/src/notifications.rs
@@ -165,7 +165,7 @@ impl Workspace {
pub mod simple_message_notification {
use super::{Notification, NotificationEvent};
- use gpui::{AnyElement, AppContext, EventEmitter, Div, Render, TextStyle, ViewContext};
+ use gpui::{AnyElement, AppContext, Div, EventEmitter, Render, TextStyle, ViewContext};
use serde::Deserialize;
use std::{borrow::Cow, sync::Arc};
diff --git a/crates/workspace2/src/pane.rs b/crates/workspace2/src/pane.rs
index aeca6173428..de078475839 100644
--- a/crates/workspace2/src/pane.rs
+++ b/crates/workspace2/src/pane.rs
@@ -7,9 +7,9 @@ use crate::{
use anyhow::Result;
use collections::{HashMap, HashSet, VecDeque};
use gpui::{
- actions, prelude::*, register_action, AppContext, AsyncWindowContext, Component, EntityId,
- EventEmitter, FocusHandle, Model, Div, PromptLevel, Render, Task, View, ViewContext,
- VisualContext, WeakView, WindowContext,
+ actions, prelude::*, register_action, AppContext, AsyncWindowContext, Component, Div, EntityId,
+ EventEmitter, FocusHandle, Model, PromptLevel, Render, Task, View, ViewContext, VisualContext,
+ WeakView, WindowContext,
};
use parking_lot::Mutex;
use project2::{Project, ProjectEntryId, ProjectPath};
diff --git a/crates/workspace2/src/status_bar.rs b/crates/workspace2/src/status_bar.rs
index 18c6bbf0798..5dccac243f4 100644
--- a/crates/workspace2/src/status_bar.rs
+++ b/crates/workspace2/src/status_bar.rs
@@ -2,8 +2,8 @@ use std::any::TypeId;
use crate::{ItemHandle, Pane};
use gpui::{
- div, AnyView, Component, Div, ParentComponent, Render, Styled, Subscription, View,
- ViewContext, WindowContext,
+ div, AnyView, Component, Div, ParentComponent, Render, Styled, Subscription, View, ViewContext,
+ WindowContext,
};
use theme2::ActiveTheme;
use util::ResultExt;
diff --git a/crates/workspace2/src/workspace2.rs b/crates/workspace2/src/workspace2.rs
index b48e4aa2785..3e3312ac3a6 100644
--- a/crates/workspace2/src/workspace2.rs
+++ b/crates/workspace2/src/workspace2.rs
@@ -37,10 +37,10 @@ use futures::{
};
use gpui::{
actions, div, point, prelude::*, rems, size, Action, AnyModel, AnyView, AnyWeakView,
- AppContext, AsyncAppContext, AsyncWindowContext, Bounds, Component, Entity, EntityId,
- EventEmitter, FocusHandle, GlobalPixels, KeyContext, Model, ModelContext, Div,
- ParentComponent, Point, Render, Size, Styled, Subscription, Task, View, ViewContext, WeakView,
- WindowBounds, WindowContext, WindowHandle, WindowOptions,
+ AppContext, AsyncAppContext, AsyncWindowContext, Bounds, Component, Div, Entity, EntityId,
+ EventEmitter, FocusHandle, GlobalPixels, KeyContext, Model, ModelContext, ParentComponent,
+ Point, Render, Size, Styled, Subscription, Task, View, ViewContext, WeakView, WindowBounds,
+ WindowContext, WindowHandle, WindowOptions,
};
use item::{FollowableItem, FollowableItemHandle, Item, ItemHandle, ItemSettings, ProjectItem};
use itertools::Itertools;