Skip to content

Commit

Permalink
chore: fix this impl can be derived
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Apr 15, 2024
1 parent bdd152d commit 87bbac1
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions console-subscriber/tests/support/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
expect_present: Option<bool>,
Expand All @@ -93,18 +93,6 @@ pub(crate) struct ExpectedTask {
expect_polls: Option<u64>,
}

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.
///
Expand Down

0 comments on commit 87bbac1

Please sign in to comment.