From 9fa09ccc246765128a2ce8a251d179b691d50c23 Mon Sep 17 00:00:00 2001 From: John Yani <361985+Vanuan@users.noreply.github.com> Date: Tue, 18 Aug 2026 22:41:54 +0000 Subject: [PATCH] Remove deprecated std::usize import from uniform_list.rs (#62841) image # Objective - using `std::usize` currently is a warning, but it's a hard fairule in rust nightly - gpui-web requires rust nightly - https://doc.rust-lang.org/std/usize/index.html ## Solution - remove std::usize import, it would be used a primitive type ## Testing - https://github.com/iamnbutler/gpui-unofficial/actions/runs/32189970651/job/95882109895#step:8:753 ## Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content adheres to Zed's UI standards ([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) and [icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md) guidelines) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable --- Release Notes: - N/A --------- Co-authored-by: Kirill Bulatov --- crates/debugger_ui/src/session/running/console.rs | 2 +- crates/git_ui/src/git_panel.rs | 2 +- crates/gpui/src/elements/uniform_list.rs | 2 +- crates/project/src/debugger/breakpoint_store.rs | 2 +- crates/project/src/debugger/session.rs | 1 - 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/debugger_ui/src/session/running/console.rs b/crates/debugger_ui/src/session/running/console.rs index fd1373ebf4..12c8d88302 100644 --- a/crates/debugger_ui/src/session/running/console.rs +++ b/crates/debugger_ui/src/session/running/console.rs @@ -23,7 +23,7 @@ use project::{ search_history::{SearchHistory, SearchHistoryCursor}, }; use settings::Settings; -use std::{ops::Range, rc::Rc, usize}; +use std::{ops::Range, rc::Rc}; use theme::Theme; use theme_settings::ThemeSettings; use ui::{ContextMenu, Divider, PopoverMenu, SplitButton, Tooltip, prelude::*}; diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 1b0f50bb7c..271a81dccd 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -84,7 +84,7 @@ use std::future::Future; use std::ops::Range; use std::path::Path; use std::rc::Rc; -use std::{sync::Arc, time::Duration, usize}; +use std::{sync::Arc, time::Duration}; use strum::{IntoEnumIterator, VariantNames}; use theme_settings::ThemeSettings; use time::OffsetDateTime; diff --git a/crates/gpui/src/elements/uniform_list.rs b/crates/gpui/src/elements/uniform_list.rs index 94ac0021ec..0a449a20a3 100644 --- a/crates/gpui/src/elements/uniform_list.rs +++ b/crates/gpui/src/elements/uniform_list.rs @@ -11,7 +11,7 @@ use crate::{ StyleRefinement, Styled, Window, point, px, size, }; use smallvec::SmallVec; -use std::{cell::RefCell, cmp, ops::Range, rc::Rc, usize}; +use std::{cell::RefCell, cmp, ops::Range, rc::Rc}; use super::ListHorizontalSizingBehavior; diff --git a/crates/project/src/debugger/breakpoint_store.rs b/crates/project/src/debugger/breakpoint_store.rs index f307afe888..16266fe728 100644 --- a/crates/project/src/debugger/breakpoint_store.rs +++ b/crates/project/src/debugger/breakpoint_store.rs @@ -15,7 +15,7 @@ use rpc::{ AnyProtoClient, TypedEnvelope, proto::{self}, }; -use std::{hash::Hash, ops::Range, path::Path, sync::Arc, u32}; +use std::{hash::Hash, ops::Range, path::Path, sync::Arc}; use text::{Bias, Point, PointUtf16, Unclipped}; use util::maybe; diff --git a/crates/project/src/debugger/session.rs b/crates/project/src/debugger/session.rs index 634feeccd9..56c5681aec 100644 --- a/crates/project/src/debugger/session.rs +++ b/crates/project/src/debugger/session.rs @@ -52,7 +52,6 @@ use std::net::{IpAddr, Ipv4Addr}; use std::ops::RangeInclusive; use std::path::PathBuf; use std::time::Duration; -use std::u64; use std::{ any::Any, collections::hash_map::Entry,