Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use `Vec` for `KeyContext` instead of `SmallVec` (#24916)
Michael Sloanaa4c438f830e
diff --git a/crates/gpui/src/keymap/context.rs b/crates/gpui/src/keymap/context.rsindex 3dc8292a5f6..2968f6909e2 100644--- a/crates/gpui/src/keymap/context.rs+++ b/crates/gpui/src/keymap/context.rs@@ -1,6 +1,5 @@use crate::SharedString;use anyhow::{anyhow, Result};-use smallvec::SmallVec;use std::fmt;/// A datastructure for resolving whether an action should be dispatched@@ -8,7 +7,7 @@ use std::fmt;/// and/or key value pairs representing the current context for the/// keymap.#[derive(Clone, Default, Eq, PartialEq, Hash)]-pub struct KeyContext(SmallVec<[ContextEntry; 1]>);+pub struct KeyContext(Vec<ContextEntry>);#[derive(Clone, Debug, Eq, PartialEq, Hash)]/// An entry in a KeyContext