Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Fix panic related to context menus in WASM (#64223)
Bennet Bo Fenner69af529edc8f
diff --git a/crates/ui/src/components/context_menu.rs b/crates/ui/src/components/context_menu.rsindex cea25ab5e73..9662b5ed009 100644--- a/crates/ui/src/components/context_menu.rs+++ b/crates/ui/src/components/context_menu.rs@@ -12,9 +12,10 @@ use std::{cell::{Cell, RefCell},collections::HashMap,rc::Rc,- time::{Duration, Instant},+ time::Duration,};use theme::BufferLineHeight;+use web_time::Instant;#[derive(Copy, Clone, Debug, PartialEq, Eq)]enum SubmenuOpenTrigger {