Remove deprecated std::usize import from uniform_list.rs (#62841)

<img width="993" height="370" alt="image"
src="https://github.com/user-attachments/assets/15e3a185-3328-4069-ad86-21d29f647f83"
/>

# 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 <kirill@zed.dev>
This commit is contained in:
John YaniandKirill Bulatov authored and GitHub committed 2026-08-18 22:41:54 +00:00
1 parent 22ba488f6d
commit 9fa09ccc24
5 files changed
+4 -5

No files matched your search

@@ -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::*};
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
@@ -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;
-1
View File
@@ -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,