Switch from vec to smallvec
This commit is contained in:
parent
0a50d271b7
commit
d80dba1fe3
9 changed files with 32 additions and 20 deletions
|
@ -24,6 +24,7 @@ use serde::Serialize;
|
|||
use workspace::{
|
||||
item::{Item, ItemHandle},
|
||||
searchable::{SearchableItem, SearchableItemHandle},
|
||||
smallvec::SmallVec,
|
||||
AppState, Workspace,
|
||||
};
|
||||
|
||||
|
@ -258,8 +259,8 @@ impl Item for FeedbackEditor {
|
|||
self.editor.for_each_project_item(cx, f)
|
||||
}
|
||||
|
||||
fn to_item_events(_: &Self::Event) -> Vec<workspace::item::ItemEvent> {
|
||||
Vec::new()
|
||||
fn to_item_events(_: &Self::Event) -> SmallVec<[workspace::item::ItemEvent; 2]> {
|
||||
SmallVec::new()
|
||||
}
|
||||
|
||||
fn is_singleton(&self, _: &AppContext) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue