From 487ea9ff0d62651bff6eeb390e631eb302f6b1e4 Mon Sep 17 00:00:00 2001 From: G36maid Date: Thu, 14 May 2026 17:45:11 +0800 Subject: [PATCH] run cargo fmt Remove unused cfg-if and release_channel deps from crashes crate Update Cargo.lock --- Cargo.lock | 2 -- crates/crashes/Cargo.toml | 2 -- crates/gpui/src/gpui.rs | 14 ++++++++++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 85f6ddf1cdf..d7f105a2512 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4144,7 +4144,6 @@ name = "crashes" version = "0.1.0" dependencies = [ "async-process", - "cfg-if", "crash-handler", "futures 0.3.32", "log", @@ -4152,7 +4151,6 @@ dependencies = [ "minidumper", "parking_lot", "paths", - "release_channel", "serde", "serde_json", "system_specs", diff --git a/crates/crashes/Cargo.toml b/crates/crashes/Cargo.toml index c652d34d484..8c3526f4c94 100644 --- a/crates/crashes/Cargo.toml +++ b/crates/crashes/Cargo.toml @@ -6,11 +6,9 @@ edition.workspace = true license = "GPL-3.0-or-later" [dependencies] -cfg-if.workspace = true futures.workspace = true log.workspace = true parking_lot.workspace = true -release_channel.workspace = true serde.workspace = true serde_json.workspace = true diff --git a/crates/gpui/src/gpui.rs b/crates/gpui/src/gpui.rs index 4e3efcfd22a..dc0233839d6 100644 --- a/crates/gpui/src/gpui.rs +++ b/crates/gpui/src/gpui.rs @@ -35,7 +35,12 @@ mod platform; pub mod prelude; /// Profiling utilities for task timing and thread performance tracking. pub mod profiler; -#[cfg(any(target_os = "windows", target_os = "linux", target_os = "freebsd", target_family = "wasm"))] +#[cfg(any( + target_os = "windows", + target_os = "linux", + target_os = "freebsd", + target_family = "wasm" +))] #[expect(missing_docs)] pub mod queue; mod scene; @@ -102,7 +107,12 @@ pub use keymap::*; pub use path_builder::*; pub use platform::*; pub use profiler::*; -#[cfg(any(target_os = "windows", target_os = "linux", target_os = "freebsd", target_family = "wasm"))] +#[cfg(any( + target_os = "windows", + target_os = "linux", + target_os = "freebsd", + target_family = "wasm" +))] pub use queue::{PriorityQueueReceiver, PriorityQueueSender}; pub use refineable::*; pub use scene::*;