Skip to content

Commit

Permalink
chore: move it to impl block
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Apr 17, 2024
1 parent dbf8e34 commit 7f91d54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions console-subscriber/tests/support/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ pub(crate) struct ExpectedTask {
expect_polls: Option<u64>,
}

#[allow(clippy::result_large_err)]
impl ExpectedTask {
/// Returns whether or not an actual task matches this expected task.
///
Expand All @@ -110,7 +111,6 @@ impl ExpectedTask {

/// Returns an error specifying that no match was found for this expected
/// task.
#[allow(clippy::result_large_err)]
pub(super) fn no_match_error(&self) -> Result<(), TaskValidationFailure> {
Err(TaskValidationFailure {
expected: self.clone(),
Expand All @@ -127,7 +127,6 @@ impl ExpectedTask {
/// If all expectations are met, this method returns `Ok(())`. If any
/// expectations are not met, then the first incorrect expectation will
/// be returned as an `Err`.
#[allow(clippy::result_large_err)]
pub(super) fn validate_actual_task(
&self,
actual_task: &ActualTask,
Expand Down

0 comments on commit 7f91d54

Please sign in to comment.