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,6 +1,6 @@
|
|||
use std::borrow::Cow;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use anyhow::{Result, anyhow};
|
||||
use gpui::{AssetSource, SharedString};
|
||||
use rust_embed::RustEmbed;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use editor::Editor;
|
||||
use gpui::{
|
||||
div, white, App, AppContext as _, Context, Entity, IntoElement, KeyBinding, ParentElement,
|
||||
Render, Styled, Window,
|
||||
App, AppContext as _, Context, Entity, IntoElement, KeyBinding, ParentElement, Render, Styled,
|
||||
Window, div, white,
|
||||
};
|
||||
|
||||
pub struct AutoHeightEditorStory {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
use gpui::{
|
||||
colors, div, prelude::*, App, Context, DefaultColor, DefaultThemeAppearance, Entity, Hsla,
|
||||
Render, Window,
|
||||
App, Context, DefaultColor, DefaultThemeAppearance, Entity, Hsla, Render, Window, colors, div,
|
||||
prelude::*,
|
||||
};
|
||||
use story::Story;
|
||||
use strum::IntoEnumIterator;
|
||||
use ui::{h_flex, ActiveTheme};
|
||||
use ui::{ActiveTheme, h_flex};
|
||||
|
||||
pub struct DefaultColorsStory;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use gpui::{
|
||||
actions, div, prelude::*, App, Entity, FocusHandle, KeyBinding, Render, Subscription, Window,
|
||||
App, Entity, FocusHandle, KeyBinding, Render, Subscription, Window, actions, div, prelude::*,
|
||||
};
|
||||
use ui::prelude::*;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use gpui::{prelude::*, Entity, Render};
|
||||
use gpui::{Entity, Render, prelude::*};
|
||||
use story::Story;
|
||||
use strum::IntoEnumIterator;
|
||||
use ui::prelude::*;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
use fuzzy::StringMatchCandidate;
|
||||
use gpui::{div, prelude::*, App, Entity, KeyBinding, Render, SharedString, Styled, Task, Window};
|
||||
use gpui::{App, Entity, KeyBinding, Render, SharedString, Styled, Task, Window, div, prelude::*};
|
||||
use picker::{Picker, PickerDelegate};
|
||||
use std::sync::Arc;
|
||||
use ui::{prelude::*, ListItemSpacing};
|
||||
use ui::{Label, ListItem};
|
||||
use ui::{ListItemSpacing, prelude::*};
|
||||
|
||||
pub struct PickerStory {
|
||||
picker: Entity<Picker<Delegate>>,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use gpui::{div, prelude::*, px, App, Entity, Render, SharedString, Styled, Window};
|
||||
use ui::prelude::*;
|
||||
use gpui::{App, Entity, Render, SharedString, Styled, Window, div, prelude::*, px};
|
||||
use ui::Tooltip;
|
||||
use ui::prelude::*;
|
||||
|
||||
pub struct ScrollStory;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use gpui::{
|
||||
div, green, red, App, AppContext as _, Context, Entity, HighlightStyle, InteractiveText,
|
||||
IntoElement, ParentElement, Render, Styled, StyledText, Window,
|
||||
App, AppContext as _, Context, Entity, HighlightStyle, InteractiveText, IntoElement,
|
||||
ParentElement, Render, Styled, StyledText, Window, div, green, red,
|
||||
};
|
||||
use indoc::indoc;
|
||||
use story::*;
|
||||
|
|
|
@ -3,8 +3,8 @@ use std::sync::OnceLock;
|
|||
|
||||
use crate::stories::*;
|
||||
use anyhow::anyhow;
|
||||
use clap::builder::PossibleValue;
|
||||
use clap::ValueEnum;
|
||||
use clap::builder::PossibleValue;
|
||||
use gpui::AnyView;
|
||||
use strum::{EnumIter, EnumString, IntoEnumIterator};
|
||||
use ui::prelude::*;
|
||||
|
|
|
@ -9,7 +9,7 @@ use std::sync::Arc;
|
|||
use clap::Parser;
|
||||
use dialoguer::FuzzySelect;
|
||||
use gpui::{
|
||||
div, px, size, AnyView, App, Bounds, Context, Render, Window, WindowBounds, WindowOptions,
|
||||
AnyView, App, Bounds, Context, Render, Window, WindowBounds, WindowOptions, div, px, size,
|
||||
};
|
||||
use log::LevelFilter;
|
||||
use project::Project;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue