Skip to content

Commit

Permalink
Use BTreeMap instead of HashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonXLF committed Oct 31, 2024
1 parent fbe660a commit a06cde5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/core/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ use crate::renderer::Renderer;
use crate::{Callback, Coord, SharedString};
#[cfg(not(feature = "std"))]
use alloc::boxed::Box;
use alloc::collections::BTreeMap;
use alloc::rc::{Rc, Weak};
use alloc::vec::Vec;
use core::cell::{Cell, RefCell};
use core::iter;
use core::pin::Pin;
use std::collections::HashMap;
use euclid::num::Zero;
use vtable::VRcMapped;

Expand Down Expand Up @@ -433,7 +434,7 @@ pub struct WindowInner {
maximized: Cell<bool>,
minimized: Cell<bool>,

active_popups: RefCell<HashMap<u32, PopupWindow>>,
active_popups: RefCell<BTreeMap<u32, PopupWindow>>,
popup_counter: Cell<u32>,
close_requested: Callback<(), CloseRequestResponse>,
click_state: ClickState,
Expand Down

0 comments on commit a06cde5

Please sign in to comment.