changed name of subscription mapping and moved out to file

Co-authored-by: Keith <keith@zed.dev>
This commit is contained in:
Mikayla Maki 2022-08-09 16:59:13 -07:00
parent 3d9821b430
commit 45c0539de0
3 changed files with 165 additions and 153 deletions

View file

@ -13,11 +13,11 @@ use crate::{
ReadModel, ReadView, RenderContext, RenderParams, Scene, UpgradeModelHandle, UpgradeViewHandle,
View, ViewHandle, WeakModelHandle, WeakViewHandle,
};
use collections::{HashMap, HashSet};
use pathfinder_geometry::vector::{vec2f, Vector2F};
use serde_json::json;
use smallvec::SmallVec;
use std::{
collections::{HashMap, HashSet},
marker::PhantomData,
ops::{Deref, DerefMut, Range},
sync::Arc,
@ -52,7 +52,7 @@ impl Presenter {
Self {
window_id,
rendered_views: cx.render_views(window_id, titlebar_height),
parents: HashMap::new(),
parents: Default::default(),
cursor_regions: Default::default(),
mouse_regions: Default::default(),
font_cache,