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
+1 -1
View File
@@ -1,4 +1,4 @@
use crate::{prelude::*, ContentGroup};
use crate::{ContentGroup, prelude::*};
use gpui::{AnimationElement, AnimationExt, Styled};
use std::time::Duration;
+2 -2
View File
@@ -1,7 +1,7 @@
use std::fmt::{self, Display, Formatter};
use gpui::{hsla, point, px, App, BoxShadow, Hsla};
use smallvec::{smallvec, SmallVec};
use gpui::{App, BoxShadow, Hsla, hsla, point, px};
use smallvec::{SmallVec, smallvec};
use theme::{ActiveTheme, Appearance};
/// Today, elevation is primarily used to add shadows to elements, and set the correct background for elements like buttons.
+1 -1
View File
@@ -1,4 +1,4 @@
use gpui::{px, rems, App, Pixels, Rems};
use gpui::{App, Pixels, Rems, px, rems};
use settings::Settings;
use theme::{ThemeSettings, UiDensity};
use ui_macros::derive_dynamic_spacing;
+3 -3
View File
@@ -1,12 +1,12 @@
use crate::prelude::*;
use gpui::{
div, rems, AnyElement, App, IntoElement, ParentElement, Rems, RenderOnce, SharedString, Styled,
Window,
AnyElement, App, IntoElement, ParentElement, Rems, RenderOnce, SharedString, Styled, Window,
div, rems,
};
use settings::Settings;
use theme::{ActiveTheme, ThemeSettings};
use crate::{rems_from_px, Color};
use crate::{Color, rems_from_px};
/// Extends [`gpui::Styled`] with typography-related styling methods.
pub trait StyledTypography: Styled + Sized {
+1 -1
View File
@@ -1,4 +1,4 @@
use gpui::{rems, Length, Rems, Window};
use gpui::{Length, Rems, Window, rems};
/// The base size of a rem, in pixels.
pub const BASE_REM_SIZE_IN_PX: f32 = 16.;