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 Scandurra5e4557ed1634
diff --git a/crates/assistant2/src/assistant_panel.rs b/crates/assistant2/src/assistant_panel.rsindex 2c1493cdfe9..85d3f6f7408 100644--- a/crates/assistant2/src/assistant_panel.rs+++ b/crates/assistant2/src/assistant_panel.rs@@ -30,9 +30,9 @@ use fs::Fs;use futures::StreamExt;use gpui::{canvas, div, point, relative, rems, uniform_list, Action, AnyElement, AppContext,- AsyncWindowContext, AvailableSpace, ClipboardItem, Context, Div, EventEmitter, FocusHandle,- Focusable, FocusableView, FontStyle, FontWeight, HighlightStyle, InteractiveElement,- IntoElement, Model, ModelContext, ParentElement, Pixels, PromptLevel, Render, SharedString,+ AsyncWindowContext, ClipboardItem, Context, Div, EventEmitter, FocusHandle, Focusable,+ FocusableView, FontStyle, FontWeight, HighlightStyle, InteractiveElement, IntoElement, Model,+ ModelContext, ParentElement, Pixels, PromptLevel, Render, SharedString,StatefulInteractiveElement, Styled, Subscription, Task, TextStyle, UniformListScrollHandle,View, ViewContext, VisualContext, WeakModel, WeakView, WhiteSpace, WindowContext,};diff --git a/crates/terminal_view2/src/terminal_element.rs b/crates/terminal_view2/src/terminal_element.rsindex f30c1cf1bc1..3b7b32dd6f6 100644--- a/crates/terminal_view2/src/terminal_element.rs+++ b/crates/terminal_view2/src/terminal_element.rs@@ -1,11 +1,11 @@use editor::{Cursor, HighlightedRange, HighlightedRangeLine};use gpui::{- black, div, fill, point, px, red, relative, AnyElement, AsyncWindowContext, AvailableSpace,- BorrowWindow, Bounds, DispatchPhase, Element, ElementId, ExternalPaths, FocusHandle, Font,- FontStyle, FontWeight, HighlightStyle, Hsla, InteractiveElement, InteractiveElementState,- Interactivity, IntoElement, LayoutId, Model, ModelContext, ModifiersChangedEvent, MouseButton,- Pixels, PlatformInputHandler, Point, Rgba, ShapedLine, Size, StatefulInteractiveElement,- Styled, TextRun, TextStyle, TextSystem, UnderlineStyle, WhiteSpace, WindowContext,+ black, div, fill, point, px, red, relative, AnyElement, AsyncWindowContext, BorrowWindow,+ Bounds, DispatchPhase, Element, ElementId, ExternalPaths, FocusHandle, Font, FontStyle,+ FontWeight, HighlightStyle, Hsla, InteractiveElement, InteractiveElementState, Interactivity,+ IntoElement, LayoutId, Model, ModelContext, ModifiersChangedEvent, MouseButton, Pixels,+ PlatformInputHandler, Point, Rgba, ShapedLine, StatefulInteractiveElement, Styled, TextRun,+ TextStyle, TextSystem, UnderlineStyle, WhiteSpace, WindowContext,};use itertools::Itertools;use language::CursorShape;@@ -854,10 +854,8 @@ impl Element for TerminalElement {});}- if let Some(mut element) = layout.hyperlink_tooltip.take() {- let width: AvailableSpace = bounds.size.width.into();- let height: AvailableSpace = bounds.size.height.into();- element.draw(origin, Size { width, height }, cx)+ if let Some(element) = layout.hyperlink_tooltip.take() {+ element.draw(origin, bounds.size, cx)}});}