Fix formatting for the entire workspace

This commit is contained in:
Antonio Scandurra 2023-04-14 12:08:33 +02:00
parent 33bc47dbe2
commit 74ca223114
5 changed files with 10 additions and 13 deletions

View File

@ -1477,7 +1477,9 @@ async fn test_host_disconnect(
.unwrap()
.downcast::<Editor>()
.unwrap();
assert!(cx_b.read_window(window_id_b, |cx| editor_b.is_focused(cx)).unwrap());
assert!(cx_b
.read_window(window_id_b, |cx| editor_b.is_focused(cx))
.unwrap());
editor_b.update(cx_b, |editor, cx| editor.insert("X", cx));
assert!(cx_b.is_window_edited(workspace_b.window_id()));

View File

@ -248,12 +248,7 @@ impl Entity for FeedbackEditor {
}
impl Item for FeedbackEditor {
fn tab_content(
&self,
_: Option<usize>,
style: &theme::Tab,
_: &AppContext,
) -> Element<Pane> {
fn tab_content(&self, _: Option<usize>, style: &theme::Tab, _: &AppContext) -> Element<Pane> {
Flex::row()
.with_child(
Svg::new("icons/feedback_16.svg")

View File

@ -19,8 +19,8 @@ use crate::{
platform,
platform::Platform,
util::CwdBacktrace,
AppContext, Drawable, Element, Entity, FontCache, Handle, Subscription, TestAppContext,
View, ViewContext,
AppContext, Drawable, Element, Entity, FontCache, Handle, Subscription, TestAppContext, View,
ViewContext,
};
#[cfg(test)]

View File

@ -1,7 +1,7 @@
use fuzzy::{match_strings, StringMatch, StringMatchCandidate};
use gpui::{
actions, elements::*, AnyViewHandle, AppContext, Drawable, Element, Entity, MouseState,
View, ViewContext, ViewHandle,
actions, elements::*, AnyViewHandle, AppContext, Drawable, Element, Entity, MouseState, View,
ViewContext, ViewHandle,
};
use picker::{Picker, PickerDelegate};
use settings::{settings_file::SettingsFile, Settings};

View File

@ -8,8 +8,8 @@ use gpui::{
vector::{vec2f, Vector2F},
},
json::{json, ToJson},
AnyViewHandle, AppContext, Element, Entity, SceneBuilder, SizeConstraint, Subscription,
View, ViewContext, ViewHandle,
AnyViewHandle, AppContext, Element, Entity, SceneBuilder, SizeConstraint, Subscription, View,
ViewContext, ViewHandle,
};
use settings::Settings;