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:
@@ -1,4 +1,4 @@
|
||||
use crate::{prelude::*, ContentGroup};
|
||||
use crate::{ContentGroup, prelude::*};
|
||||
use gpui::{AnimationElement, AnimationExt, Styled};
|
||||
use std::time::Duration;
|
||||
|
||||
|
||||
@@ -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,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;
|
||||
|
||||
@@ -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,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.;
|
||||
|
||||
Reference in New Issue
Block a user