From 2bc36600d421eb1ad4faba8c67fa31f270436551 Mon Sep 17 00:00:00 2001 From: Joseph Lyons Date: Thu, 29 Dec 2022 13:43:56 -0500 Subject: [PATCH] Rename variable --- 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 0bd4befd77..618c650e02 100644 --- a/crates/workspace/src/pane.rs +++ b/crates/workspace/src/pane.rs @@ -746,7 +746,7 @@ impl Pane { } let active_item_id = pane.items[pane.active_item_index].id(); - let clean_buffers: Vec<_> = pane + let clean_item_ids: Vec<_> = pane .items() .filter(|item| !item.is_dirty(cx)) .map(|item| item.id()) @@ -759,7 +759,7 @@ impl Pane { move |item_id| match close_item_type { ItemType::Active => item_id == active_item_id, ItemType::Inactive => item_id != active_item_id, - ItemType::Clean => clean_buffers.contains(&item_id), + ItemType::Clean => clean_item_ids.contains(&item_id), ItemType::All => true, }, );