From 6b221fbb2f9f200a285181040ba61c59206d6bc1 Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Tue, 29 Apr 2025 14:44:16 -0400 Subject: [PATCH] Derive Default for TaskId and SpawnInTerminal These were made Default in #29208, but rather than pull that entire commit in to fix this, I'm resolving manually. --- crates/task/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/task/src/lib.rs b/crates/task/src/lib.rs index a55e89fdaf2aed111dfd7d560733dfc0ee30d8cb..bd5b8306f302e6548007d9a3f070f2fe5999cede 100644 --- a/crates/task/src/lib.rs +++ b/crates/task/src/lib.rs @@ -29,11 +29,11 @@ pub use zed_actions::RevealTarget; /// Task identifier, unique within the application. /// Based on it, task reruns and terminal tabs are managed. -#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Deserialize)] +#[derive(Default, Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Deserialize)] pub struct TaskId(pub String); /// Contains all information needed by Zed to spawn a new terminal tab for the given task. -#[derive(Debug, Clone, PartialEq, Eq)] +#[derive(Default, Debug, Clone, PartialEq, Eq)] pub struct SpawnInTerminal { /// Id of the task to use when determining task tab affinity. pub id: TaskId,