Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Disable selective warnings to make cargo check happy
Conrad Irwin8283909dfd22
diff --git a/crates/workspace2/src/pane_group.rs b/crates/workspace2/src/pane_group.rsindex a0526fdcba7..e521c51bda7 100644--- a/crates/workspace2/src/pane_group.rs+++ b/crates/workspace2/src/pane_group.rs@@ -7,7 +7,7 @@ use db2::sqlez::{statement::Statement,};use gpui2::{- point, size, AnyElement, AnyView, AnyWeakView, Bounds, Model, Pixels, Point, View, ViewContext,+ point, size, AnyElement, AnyWeakView, Bounds, Model, Pixels, Point, View, ViewContext,};use parking_lot::Mutex;use project2::Project;diff --git a/crates/workspace2/src/status_bar.rs b/crates/workspace2/src/status_bar.rsindex 52134683d86..c2f78d9ad6e 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 gpui2::{- div, AnyView, Component, Div, Element, ParentElement, Render, Styled, Subscription, View,- ViewContext, WindowContext,+ div, AnyView, Component, Div, ParentElement, Render, Styled, Subscription, View, ViewContext,+ WindowContext,};use theme2::ActiveTheme;use util::ResultExt;diff --git a/crates/workspace2/src/toolbar.rs b/crates/workspace2/src/toolbar.rsindex 55429af7915..c3d1e520c7a 100644--- a/crates/workspace2/src/toolbar.rs+++ b/crates/workspace2/src/toolbar.rs@@ -1,5 +1,7 @@use crate::ItemHandle;-use gpui2::{AnyView, AppContext, EventEmitter, Render, View, ViewContext, WindowContext};+use gpui2::{+ AnyView, AppContext, Entity, EntityId, EventEmitter, Render, View, ViewContext, WindowContext,+};pub trait ToolbarItemView: Render + EventEmitter {fn set_active_pane_item(@@ -28,7 +30,7 @@ pub trait ToolbarItemView: Render + EventEmitter {}trait ToolbarItemViewHandle: Send {- fn id(&self) -> usize;+ fn id(&self) -> EntityId;fn to_any(&self) -> AnyView;fn set_active_pane_item(&self,@@ -258,8 +260,8 @@ impl Toolbar {}impl<T: ToolbarItemView> ToolbarItemViewHandle for View<T> {- fn id(&self) -> usize {- self.id()+ fn id(&self) -> EntityId {+ self.entity_id()}fn to_any(&self) -> AnyView {diff --git a/crates/workspace2/src/workspace2.rs b/crates/workspace2/src/workspace2.rsindex 24864633920..6d29751073e 100644--- a/crates/workspace2/src/workspace2.rs+++ b/crates/workspace2/src/workspace2.rs@@ -1,3 +1,6 @@+#![allow(unused_variables, dead_code, unused_mut)]+// todo!() this is to make transition easier.+pub mod dock;pub mod item;pub mod notifications;@@ -2999,7 +3002,7 @@ impl Workspace {}Some(())- });+ })?;}Ok(())}diff --git a/crates/zed2/src/main.rs b/crates/zed2/src/main.rsindex 05ca4690b8e..f8b77fe9df5 100644--- a/crates/zed2/src/main.rs+++ b/crates/zed2/src/main.rs@@ -1,3 +1,6 @@+#![allow(unused_variables, dead_code, unused_mut)]+// todo!() this is to make transition easier.+// Allow binary to be called Zed for a nice application menu when running executable directly#![allow(non_snake_case)]@@ -24,7 +27,7 @@ use settings::{default_settings, handle_settings_file_changes, watch_config_file, Settings, SettingsStore,};use simplelog::ConfigBuilder;-use smol::{future::FutureExt, process::Command};+use smol::process::Command;use std::{env,ffi::OsStr,diff --git a/crates/zed2/src/zed2.rs b/crates/zed2/src/zed2.rsindex fe57d127527..04778f29dd8 100644--- a/crates/zed2/src/zed2.rs+++ b/crates/zed2/src/zed2.rs@@ -1,3 +1,6 @@+#![allow(unused_variables, dead_code, unused_mut)]+// todo!() this is to make transition easier.+mod assets;pub mod languages;mod only_instance;@@ -5,7 +8,6 @@ mod open_listener;pub use assets::*;use collections::HashMap;-use client::{Client, UserStore};use gpui::{point, px, AppContext, AsyncAppContext, AsyncWindowContext, Point, Task, TitlebarOptions,WeakView, WindowBounds, WindowKind, WindowOptions,