Fix warnings

This commit is contained in:
Antonio Scandurra 2023-05-22 19:33:11 +02:00
parent 048498e39b
commit 6f39d49b18
3 changed files with 7 additions and 6 deletions

View file

@ -615,8 +615,9 @@ pub(crate) mod test {
Empty::new().into_any() Empty::new().into_any()
} }
fn focus_in(&mut self, _: AnyViewHandle, _: &mut ViewContext<Self>) { fn focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
self.has_focus = true; self.has_focus = true;
cx.emit(TestPanelEvent::Focus);
} }
fn focus_out(&mut self, _: AnyViewHandle, _: &mut ViewContext<Self>) { fn focus_out(&mut self, _: AnyViewHandle, _: &mut ViewContext<Self>) {

View file

@ -2325,7 +2325,7 @@ mod tests {
} }
#[gpui::test] #[gpui::test]
async fn test_remove_item_ordering(deterministic: Arc<Deterministic>, cx: &mut TestAppContext) { async fn test_remove_item_ordering(cx: &mut TestAppContext) {
init_test(cx); init_test(cx);
let fs = FakeFs::new(cx.background()); let fs = FakeFs::new(cx.background());
@ -2372,7 +2372,7 @@ mod tests {
} }
#[gpui::test] #[gpui::test]
async fn test_close_inactive_items(deterministic: Arc<Deterministic>, cx: &mut TestAppContext) { async fn test_close_inactive_items(cx: &mut TestAppContext) {
init_test(cx); init_test(cx);
let fs = FakeFs::new(cx.background()); let fs = FakeFs::new(cx.background());
@ -2392,7 +2392,7 @@ mod tests {
} }
#[gpui::test] #[gpui::test]
async fn test_close_clean_items(deterministic: Arc<Deterministic>, cx: &mut TestAppContext) { async fn test_close_clean_items(cx: &mut TestAppContext) {
init_test(cx); init_test(cx);
let fs = FakeFs::new(cx.background()); let fs = FakeFs::new(cx.background());
@ -2461,7 +2461,7 @@ mod tests {
} }
#[gpui::test] #[gpui::test]
async fn test_close_all_items(deterministic: Arc<Deterministic>, cx: &mut TestAppContext) { async fn test_close_all_items(cx: &mut TestAppContext) {
init_test(cx); init_test(cx);
let fs = FakeFs::new(cx.background()); let fs = FakeFs::new(cx.background());

View file

@ -579,7 +579,7 @@ mod tests {
docks: Default::default(), docks: Default::default(),
}; };
let mut workspace_2 = SerializedWorkspace { let workspace_2 = SerializedWorkspace {
id: 2, id: 2,
location: (["/tmp"]).into(), location: (["/tmp"]).into(),
center_group: Default::default(), center_group: Default::default(),