From 84bacc556f55f88747c08f96ed0a36f1fa4b3dbd Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 17 Mar 2022 14:31:05 +0100 Subject: [PATCH] Rename `build_editor` to `build_item` in `Pane::open_item` Co-Authored-By: Nathan Sobo --- crates/workspace/src/pane.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs index 552d102729580f04637e00da9167aef1ed62c4bd..4ee9eb97ae6a3bef77bdc5387dede2db9597098f 100644 --- a/crates/workspace/src/pane.rs +++ b/crates/workspace/src/pane.rs @@ -284,7 +284,7 @@ impl Pane { &mut self, project_entry_id: ProjectEntryId, cx: &mut ViewContext, - build_editor: impl FnOnce(&mut MutableAppContext) -> Box, + build_item: impl FnOnce(&mut MutableAppContext) -> Box, ) -> Box { for (ix, (existing_entry_id, item)) in self.items.iter().enumerate() { if *existing_entry_id == Some(project_entry_id) { @@ -294,7 +294,7 @@ impl Pane { } } - let item = build_editor(cx); + let item = build_item(cx); self.add_item(Some(project_entry_id), item.boxed_clone(), cx); item }