From 87bbac12c8f3da9cc59deadd7f161c401979b02d Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Mon, 15 Apr 2024 20:11:43 +0800 Subject: [PATCH] chore: fix this `impl` can be derived --- console-subscriber/tests/support/task.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/console-subscriber/tests/support/task.rs b/console-subscriber/tests/support/task.rs index 4de8bc98d..0b81c8dba 100644 --- a/console-subscriber/tests/support/task.rs +++ b/console-subscriber/tests/support/task.rs @@ -84,7 +84,7 @@ impl fmt::Debug for TaskValidationFailure { /// This struct contains the fields that an expected task will attempt to match /// actual tasks on, as well as the expectations that will be used to validate /// which the actual task is as expected. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Default)] pub(crate) struct ExpectedTask { match_name: Option, expect_present: Option, @@ -93,18 +93,6 @@ pub(crate) struct ExpectedTask { expect_polls: Option, } -impl Default for ExpectedTask { - fn default() -> Self { - Self { - match_name: None, - expect_present: None, - expect_wakes: None, - expect_self_wakes: None, - expect_polls: None, - } - } -} - impl ExpectedTask { /// Returns whether or not an actual task matches this expected task. ///