chore: Bump Rust edition to 2024 (#27800)
Follow-up to https://github.com/zed-industries/zed/pull/27791 Release Notes: - N/A
This commit is contained in:
parent
d50905e000
commit
dc64ec9cc8
802 changed files with 3775 additions and 3662 deletions
|
@ -1,7 +1,7 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use editor::{Editor, EditorEvent};
|
||||
use gpui::{prelude::*, App, Entity, FocusHandle, Focusable};
|
||||
use gpui::{App, Entity, FocusHandle, Focusable, prelude::*};
|
||||
use ui::prelude::*;
|
||||
|
||||
/// The head of a [`Picker`](crate::Picker).
|
||||
|
@ -17,7 +17,7 @@ impl Head {
|
|||
pub fn editor<V: 'static>(
|
||||
placeholder_text: Arc<str>,
|
||||
edit_handler: impl FnMut(&mut V, &Entity<Editor>, &EditorEvent, &mut Window, &mut Context<V>)
|
||||
+ 'static,
|
||||
+ 'static,
|
||||
window: &mut Window,
|
||||
cx: &mut Context<V>,
|
||||
) -> Self {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use ui::{prelude::*, HighlightedLabel};
|
||||
use ui::{HighlightedLabel, prelude::*};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct HighlightedMatchWithPaths {
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
use anyhow::Result;
|
||||
use editor::{scroll::Autoscroll, Editor};
|
||||
use editor::{Editor, scroll::Autoscroll};
|
||||
use gpui::{
|
||||
actions, div, impl_actions, list, prelude::*, uniform_list, AnyElement, App, ClickEvent,
|
||||
Context, DismissEvent, Entity, EventEmitter, FocusHandle, Focusable, Length,
|
||||
ListSizingBehavior, ListState, MouseButton, MouseUpEvent, Render, ScrollHandle, ScrollStrategy,
|
||||
Stateful, Task, UniformListScrollHandle, Window,
|
||||
AnyElement, App, ClickEvent, Context, DismissEvent, Entity, EventEmitter, FocusHandle,
|
||||
Focusable, Length, ListSizingBehavior, ListState, MouseButton, MouseUpEvent, Render,
|
||||
ScrollHandle, ScrollStrategy, Stateful, Task, UniformListScrollHandle, Window, actions, div,
|
||||
impl_actions, list, prelude::*, uniform_list,
|
||||
};
|
||||
use head::Head;
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
use std::{sync::Arc, time::Duration};
|
||||
use ui::{
|
||||
prelude::*, v_flex, Color, Divider, Label, ListItem, ListItemSpacing, Scrollbar, ScrollbarState,
|
||||
Color, Divider, Label, ListItem, ListItemSpacing, Scrollbar, ScrollbarState, prelude::*, v_flex,
|
||||
};
|
||||
use util::ResultExt;
|
||||
use workspace::ModalView;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue