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,5 +1,5 @@
|
|||
use gpui::{
|
||||
px, FontStyle, FontWeight, HighlightStyle, SharedString, StrikethroughStyle, UnderlineStyle,
|
||||
FontStyle, FontWeight, HighlightStyle, SharedString, StrikethroughStyle, UnderlineStyle, px,
|
||||
};
|
||||
use language::HighlightId;
|
||||
use std::{fmt::Display, ops::Range, path::PathBuf};
|
||||
|
|
|
@ -751,12 +751,12 @@ mod tests {
|
|||
|
||||
use super::*;
|
||||
|
||||
use ParsedMarkdownListItemType::*;
|
||||
use gpui::BackgroundExecutor;
|
||||
use language::{
|
||||
tree_sitter_rust, HighlightId, Language, LanguageConfig, LanguageMatcher, LanguageRegistry,
|
||||
HighlightId, Language, LanguageConfig, LanguageMatcher, LanguageRegistry, tree_sitter_rust,
|
||||
};
|
||||
use pretty_assertions::assert_eq;
|
||||
use ParsedMarkdownListItemType::*;
|
||||
|
||||
async fn parse(input: &str) -> ParsedMarkdown {
|
||||
parse_markdown(input, None, None).await
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use gpui::{actions, App};
|
||||
use gpui::{App, actions};
|
||||
use workspace::Workspace;
|
||||
|
||||
pub mod markdown_elements;
|
||||
|
|
|
@ -6,22 +6,22 @@ use anyhow::Result;
|
|||
use editor::scroll::Autoscroll;
|
||||
use editor::{Editor, EditorEvent};
|
||||
use gpui::{
|
||||
list, App, ClickEvent, Context, Entity, EventEmitter, FocusHandle, Focusable,
|
||||
InteractiveElement, IntoElement, ListState, ParentElement, Render, Styled, Subscription, Task,
|
||||
WeakEntity, Window,
|
||||
App, ClickEvent, Context, Entity, EventEmitter, FocusHandle, Focusable, InteractiveElement,
|
||||
IntoElement, ListState, ParentElement, Render, Styled, Subscription, Task, WeakEntity, Window,
|
||||
list,
|
||||
};
|
||||
use language::LanguageRegistry;
|
||||
use ui::prelude::*;
|
||||
use workspace::item::{Item, ItemHandle};
|
||||
use workspace::{Pane, Workspace};
|
||||
|
||||
use crate::markdown_elements::ParsedMarkdownElement;
|
||||
use crate::OpenPreviewToTheSide;
|
||||
use crate::markdown_elements::ParsedMarkdownElement;
|
||||
use crate::{
|
||||
OpenPreview,
|
||||
markdown_elements::ParsedMarkdown,
|
||||
markdown_parser::parse_markdown,
|
||||
markdown_renderer::{render_markdown_block, RenderContext},
|
||||
OpenPreview,
|
||||
markdown_renderer::{RenderContext, render_markdown_block},
|
||||
};
|
||||
|
||||
const REPARSE_DEBOUNCE: Duration = Duration::from_millis(200);
|
||||
|
|
|
@ -5,10 +5,10 @@ use crate::markdown_elements::{
|
|||
ParsedMarkdownTableAlignment, ParsedMarkdownTableRow,
|
||||
};
|
||||
use gpui::{
|
||||
div, img, px, rems, AbsoluteLength, AnyElement, App, AppContext as _, ClipboardItem, Context,
|
||||
DefiniteLength, Div, Element, ElementId, Entity, HighlightStyle, Hsla, ImageSource,
|
||||
InteractiveText, IntoElement, Keystroke, Length, Modifiers, ParentElement, Render, Resource,
|
||||
SharedString, Styled, StyledText, TextStyle, WeakEntity, Window,
|
||||
AbsoluteLength, AnyElement, App, AppContext as _, ClipboardItem, Context, DefiniteLength, Div,
|
||||
Element, ElementId, Entity, HighlightStyle, Hsla, ImageSource, InteractiveText, IntoElement,
|
||||
Keystroke, Length, Modifiers, ParentElement, Render, Resource, SharedString, Styled,
|
||||
StyledText, TextStyle, WeakEntity, Window, div, img, px, rems,
|
||||
};
|
||||
use settings::Settings;
|
||||
use std::{
|
||||
|
@ -18,10 +18,10 @@ use std::{
|
|||
};
|
||||
use theme::{ActiveTheme, SyntaxTheme, ThemeSettings};
|
||||
use ui::{
|
||||
h_flex, relative, tooltip_container, v_flex, ButtonCommon, Checkbox, Clickable, Color,
|
||||
FluentBuilder, IconButton, IconName, IconSize, InteractiveElement, Label, LabelCommon,
|
||||
LabelSize, LinkPreview, StatefulInteractiveElement, StyledExt, StyledImage, ToggleState,
|
||||
Tooltip, VisibleOnHover,
|
||||
ButtonCommon, Checkbox, Clickable, Color, FluentBuilder, IconButton, IconName, IconSize,
|
||||
InteractiveElement, Label, LabelCommon, LabelSize, LinkPreview, StatefulInteractiveElement,
|
||||
StyledExt, StyledImage, ToggleState, Tooltip, VisibleOnHover, h_flex, relative,
|
||||
tooltip_container, v_flex,
|
||||
};
|
||||
use workspace::{OpenOptions, OpenVisible, Workspace};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue