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:
Piotr Osiewicz
2025-03-31 20:55:27 +02:00
committed by GitHub
parent d50905e000
commit dc64ec9cc8
802 changed files with 3775 additions and 3662 deletions
+5 -5
View File
@@ -1,12 +1,12 @@
use component::{example_group_with_title, single_example, ComponentPreview};
use component::{ComponentPreview, example_group_with_title, single_example};
use gpui::{AnyElement, AnyView, DefiniteLength};
use ui_macros::IntoComponent;
use crate::{
prelude::*, Color, DynamicSpacing, ElevationIndex, IconPosition, KeyBinding,
KeybindingPosition, TintColor,
};
use crate::{ButtonCommon, ButtonLike, ButtonSize, ButtonStyle, IconName, IconSize, Label};
use crate::{
Color, DynamicSpacing, ElevationIndex, IconPosition, KeyBinding, KeybindingPosition, TintColor,
prelude::*,
};
use super::button_icon::ButtonIcon;
@@ -1,4 +1,4 @@
use crate::{prelude::*, Icon, IconName, IconSize, IconWithIndicator, Indicator};
use crate::{Icon, IconName, IconSize, IconWithIndicator, Indicator, prelude::*};
use gpui::Hsla;
/// An icon that appears within a button.
@@ -1,8 +1,8 @@
use gpui::{relative, CursorStyle, DefiniteLength, MouseButton, MouseDownEvent, MouseUpEvent};
use gpui::{transparent_black, AnyElement, AnyView, ClickEvent, Hsla, Rems};
use gpui::{AnyElement, AnyView, ClickEvent, Hsla, Rems, transparent_black};
use gpui::{CursorStyle, DefiniteLength, MouseButton, MouseDownEvent, MouseUpEvent, relative};
use smallvec::SmallVec;
use crate::{prelude::*, DynamicSpacing, ElevationIndex};
use crate::{DynamicSpacing, ElevationIndex, prelude::*};
/// A trait for buttons that can be Selected. Enables setting the [`ButtonStyle`] of a button when it is selected.
pub trait SelectableButton: Toggleable {
@@ -1,7 +1,7 @@
use gpui::{AnyView, DefiniteLength, Hsla};
use super::button_like::{ButtonCommon, ButtonLike, ButtonSize, ButtonStyle};
use crate::{prelude::*, ElevationIndex, Indicator, SelectableButton, TintColor};
use crate::{ElevationIndex, Indicator, SelectableButton, TintColor, prelude::*};
use crate::{IconName, IconSize};
use super::button_icon::ButtonIcon;
@@ -1,10 +1,10 @@
use gpui::{
div, hsla, point, px, AnyElement, App, BoxShadow, IntoElement, ParentElement, RenderOnce,
Styled, Window,
AnyElement, App, BoxShadow, IntoElement, ParentElement, RenderOnce, Styled, Window, div, hsla,
point, px,
};
use theme::ActiveTheme;
use crate::{h_flex, ElevationIndex};
use crate::{ElevationIndex, h_flex};
use super::ButtonLike;
@@ -1,6 +1,6 @@
use gpui::{AnyView, ClickEvent};
use crate::{prelude::*, ButtonLike, ButtonLikeRounding, ElevationIndex};
use crate::{ButtonLike, ButtonLikeRounding, ElevationIndex, prelude::*};
/// The position of a [`ToggleButton`] within a group of buttons.
#[derive(Debug, PartialEq, Eq, Clone, Copy)]