Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix warnings
Antonio Scandurra6f39d49b184a
diff --git a/crates/workspace/src/dock.rs b/crates/workspace/src/dock.rsindex 8f44419ddc5..7e6868f9b09 100644--- a/crates/workspace/src/dock.rs+++ b/crates/workspace/src/dock.rs@@ -615,8 +615,9 @@ pub(crate) mod test {Empty::new().into_any()}- fn focus_in(&mut self, _: AnyViewHandle, _: &mut ViewContext<Self>) {+ fn focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {self.has_focus = true;+ cx.emit(TestPanelEvent::Focus);}fn focus_out(&mut self, _: AnyViewHandle, _: &mut ViewContext<Self>) {diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rsindex aae900c8615..eb3dd12b334 100644--- a/crates/workspace/src/pane.rs+++ b/crates/workspace/src/pane.rs@@ -2325,7 +2325,7 @@ mod tests {}#[gpui::test]- async fn test_remove_item_ordering(deterministic: Arc<Deterministic>, cx: &mut TestAppContext) {+ async fn test_remove_item_ordering(cx: &mut TestAppContext) {init_test(cx);let fs = FakeFs::new(cx.background());@@ -2372,7 +2372,7 @@ mod tests {}#[gpui::test]- async fn test_close_inactive_items(deterministic: Arc<Deterministic>, cx: &mut TestAppContext) {+ async fn test_close_inactive_items(cx: &mut TestAppContext) {init_test(cx);let fs = FakeFs::new(cx.background());@@ -2392,7 +2392,7 @@ mod tests {}#[gpui::test]- async fn test_close_clean_items(deterministic: Arc<Deterministic>, cx: &mut TestAppContext) {+ async fn test_close_clean_items(cx: &mut TestAppContext) {init_test(cx);let fs = FakeFs::new(cx.background());@@ -2461,7 +2461,7 @@ mod tests {}#[gpui::test]- async fn test_close_all_items(deterministic: Arc<Deterministic>, cx: &mut TestAppContext) {+ async fn test_close_all_items(cx: &mut TestAppContext) {init_test(cx);let fs = FakeFs::new(cx.background());diff --git a/crates/workspace/src/persistence.rs b/crates/workspace/src/persistence.rsindex 76b66c5329e..d27818d2028 100644--- a/crates/workspace/src/persistence.rs+++ b/crates/workspace/src/persistence.rs@@ -579,7 +579,7 @@ mod tests {docks: Default::default(),};- let mut workspace_2 = SerializedWorkspace {+ let workspace_2 = SerializedWorkspace {id: 2,location: (["/tmp"]).into(),center_group: Default::default(),