diff --git a/helix-view/src/input.rs b/helix-view/src/input.rs index e9ea8ce2b..dc05ea78f 100644 --- a/helix-view/src/input.rs +++ b/helix-view/src/input.rs @@ -1068,10 +1068,8 @@ mod test { #[test] fn switching_views_resets_mouse_clicks() { - use slotmap::HopSlotMap; - let mut mouse_clicks = MouseClicks::new(); - let mut view_ids: HopSlotMap = HopSlotMap::with_key(); + let mut view_ids = slotmap::HopSlotMap::with_key(); let view1 = view_ids.insert(()); let view2 = view_ids.insert(());