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,4 +1,4 @@
|
|||
use gpui::{prelude::*, AnyElement};
|
||||
use gpui::{AnyElement, prelude::*};
|
||||
use smallvec::SmallVec;
|
||||
use ui::prelude::*;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use gpui::{AnyElement, Div, StyleRefinement};
|
||||
use smallvec::SmallVec;
|
||||
use ui::{prelude::*, ButtonLike};
|
||||
use ui::{ButtonLike, prelude::*};
|
||||
|
||||
#[derive(IntoElement)]
|
||||
pub struct FeatureUpsell {
|
||||
|
|
|
@ -9,7 +9,7 @@ use gpui::{AppContext as _, Context, Entity, SharedString, Window};
|
|||
use language::Buffer;
|
||||
use ui::prelude::*;
|
||||
use workspace::notifications::simple_message_notification::MessageNotification;
|
||||
use workspace::{notifications::NotificationId, Workspace};
|
||||
use workspace::{Workspace, notifications::NotificationId};
|
||||
|
||||
const SUGGESTIONS_BY_EXTENSION_ID: &[(&str, &[&str])] = &[
|
||||
("astro", &["astro"]),
|
||||
|
|
|
@ -4,13 +4,13 @@ use std::sync::Arc;
|
|||
use client::ExtensionMetadata;
|
||||
use extension_host::{ExtensionSettings, ExtensionStore};
|
||||
use fs::Fs;
|
||||
use fuzzy::{match_strings, StringMatch, StringMatchCandidate};
|
||||
use gpui::{prelude::*, App, DismissEvent, Entity, EventEmitter, Focusable, Task, WeakEntity};
|
||||
use fuzzy::{StringMatch, StringMatchCandidate, match_strings};
|
||||
use gpui::{App, DismissEvent, Entity, EventEmitter, Focusable, Task, WeakEntity, prelude::*};
|
||||
use picker::{Picker, PickerDelegate};
|
||||
use release_channel::ReleaseChannel;
|
||||
use semantic_version::SemanticVersion;
|
||||
use settings::update_settings_file;
|
||||
use ui::{prelude::*, HighlightedLabel, ListItem, ListItemSpacing};
|
||||
use ui::{HighlightedLabel, ListItem, ListItemSpacing, prelude::*};
|
||||
use util::ResultExt;
|
||||
use workspace::ModalView;
|
||||
|
||||
|
|
|
@ -10,11 +10,11 @@ use client::{ExtensionMetadata, ExtensionProvides};
|
|||
use collections::{BTreeMap, BTreeSet};
|
||||
use editor::{Editor, EditorElement, EditorStyle};
|
||||
use extension_host::{ExtensionManifest, ExtensionOperation, ExtensionStore};
|
||||
use fuzzy::{match_strings, StringMatchCandidate};
|
||||
use fuzzy::{StringMatchCandidate, match_strings};
|
||||
use gpui::{
|
||||
actions, point, uniform_list, Action, App, ClipboardItem, Context, Entity, EventEmitter,
|
||||
Flatten, Focusable, InteractiveElement, KeyContext, ParentElement, Render, Styled, Task,
|
||||
TextStyle, UniformListScrollHandle, WeakEntity, Window,
|
||||
Action, App, ClipboardItem, Context, Entity, EventEmitter, Flatten, Focusable,
|
||||
InteractiveElement, KeyContext, ParentElement, Render, Styled, Task, TextStyle,
|
||||
UniformListScrollHandle, WeakEntity, Window, actions, point, uniform_list,
|
||||
};
|
||||
use num_format::{Locale, ToFormattedString};
|
||||
use project::DirectoryLister;
|
||||
|
@ -23,13 +23,13 @@ use settings::Settings;
|
|||
use strum::IntoEnumIterator as _;
|
||||
use theme::ThemeSettings;
|
||||
use ui::{
|
||||
prelude::*, CheckboxWithLabel, ContextMenu, PopoverMenu, ScrollableHandle, Scrollbar,
|
||||
ScrollbarState, ToggleButton, Tooltip,
|
||||
CheckboxWithLabel, ContextMenu, PopoverMenu, ScrollableHandle, Scrollbar, ScrollbarState,
|
||||
ToggleButton, Tooltip, prelude::*,
|
||||
};
|
||||
use vim_mode_setting::VimModeSetting;
|
||||
use workspace::{
|
||||
item::{Item, ItemEvent},
|
||||
Workspace, WorkspaceId,
|
||||
item::{Item, ItemEvent},
|
||||
};
|
||||
use zed_actions::ExtensionCategoryFilter;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue