chore: Fix refining_impl_trait lint occurences (#11979)
These show up when compiling Zed with latest nightly, which means that we'd have to do it one or two Rust releases down the line. Release Notes: - N/A
This commit is contained in:
parent
79098671e6
commit
9d10969906
5 changed files with 8 additions and 8 deletions
|
@ -2756,7 +2756,7 @@ impl ConversationEditor {
|
||||||
impl EventEmitter<ConversationEditorEvent> for ConversationEditor {}
|
impl EventEmitter<ConversationEditorEvent> for ConversationEditor {}
|
||||||
|
|
||||||
impl Render for ConversationEditor {
|
impl Render for ConversationEditor {
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||||
div()
|
div()
|
||||||
.key_context("ConversationEditor")
|
.key_context("ConversationEditor")
|
||||||
.capture_action(cx.listener(ConversationEditor::cancel_last_assist))
|
.capture_action(cx.listener(ConversationEditor::cancel_last_assist))
|
||||||
|
@ -2840,7 +2840,7 @@ struct InlineAssistant {
|
||||||
impl EventEmitter<InlineAssistantEvent> for InlineAssistant {}
|
impl EventEmitter<InlineAssistantEvent> for InlineAssistant {}
|
||||||
|
|
||||||
impl Render for InlineAssistant {
|
impl Render for InlineAssistant {
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||||
let measurements = *self.measurements.lock();
|
let measurements = *self.measurements.lock();
|
||||||
h_flex()
|
h_flex()
|
||||||
.w_full()
|
.w_full()
|
||||||
|
|
|
@ -2961,7 +2961,7 @@ struct DraggedChannelView {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Render for DraggedChannelView {
|
impl Render for DraggedChannelView {
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||||
let ui_font = ThemeSettings::get_global(cx).ui_font.family.clone();
|
let ui_font = ThemeSettings::get_global(cx).ui_font.family.clone();
|
||||||
h_flex()
|
h_flex()
|
||||||
.font_family(ui_font)
|
.font_family(ui_font)
|
||||||
|
|
|
@ -87,7 +87,7 @@ struct DiagnosticGroupState {
|
||||||
impl EventEmitter<EditorEvent> for ProjectDiagnosticsEditor {}
|
impl EventEmitter<EditorEvent> for ProjectDiagnosticsEditor {}
|
||||||
|
|
||||||
impl Render for ProjectDiagnosticsEditor {
|
impl Render for ProjectDiagnosticsEditor {
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||||
let child = if self.path_states.is_empty() {
|
let child = if self.path_states.is_empty() {
|
||||||
div()
|
div()
|
||||||
.bg(cx.theme().colors().editor_background)
|
.bg(cx.theme().colors().editor_background)
|
||||||
|
|
|
@ -440,8 +440,8 @@ impl PlatformInput {
|
||||||
mod test {
|
mod test {
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
self as gpui, div, Element, FocusHandle, InteractiveElement, IntoElement, KeyBinding,
|
self as gpui, div, FocusHandle, InteractiveElement, IntoElement, KeyBinding, Keystroke,
|
||||||
Keystroke, ParentElement, Render, TestAppContext, VisualContext,
|
ParentElement, Render, TestAppContext, VisualContext,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TestView {
|
struct TestView {
|
||||||
|
@ -453,7 +453,7 @@ mod test {
|
||||||
actions!(test, [TestAction]);
|
actions!(test, [TestAction]);
|
||||||
|
|
||||||
impl Render for TestView {
|
impl Render for TestView {
|
||||||
fn render(&mut self, cx: &mut gpui::ViewContext<Self>) -> impl Element {
|
fn render(&mut self, cx: &mut gpui::ViewContext<Self>) -> impl IntoElement {
|
||||||
div().id("testview").child(
|
div().id("testview").child(
|
||||||
div()
|
div()
|
||||||
.key_context("parent")
|
.key_context("parent")
|
||||||
|
|
|
@ -1899,7 +1899,7 @@ impl Render for ProjectPanel {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Render for DraggedProjectEntryView {
|
impl Render for DraggedProjectEntryView {
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||||
let settings = ProjectPanelSettings::get_global(cx);
|
let settings = ProjectPanelSettings::get_global(cx);
|
||||||
let ui_font = ThemeSettings::get_global(cx).ui_font.family.clone();
|
let ui_font = ThemeSettings::get_global(cx).ui_font.family.clone();
|
||||||
h_flex()
|
h_flex()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue