From 019ae25847106bfe65cf3c2790e54a4c25d7f488 Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 13 Dec 2022 10:59:38 +1000 Subject: [PATCH] Remove redundant track_callers which now cause errors on nightly (#5839) --- zebra-test/src/mock_service.rs | 8 -------- zebra-test/src/transcript.rs | 12 ++++++------ 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/zebra-test/src/mock_service.rs b/zebra-test/src/mock_service.rs index ef1dc412..21debf97 100644 --- a/zebra-test/src/mock_service.rs +++ b/zebra-test/src/mock_service.rs @@ -315,7 +315,6 @@ impl MockService MockService bool, @@ -420,7 +418,6 @@ impl MockService MockService ResponseSender { match self.try_next_request().await { Some(request) => request, @@ -507,7 +503,6 @@ impl MockService MockService bool, @@ -629,7 +623,6 @@ impl MockService Result<(), TestCaseError> where Request: Debug, @@ -657,7 +650,6 @@ impl MockService Result, TestCaseError> { diff --git a/zebra-test/src/transcript.rs b/zebra-test/src/transcript.rs index a8538260..5f25ae06 100644 --- a/zebra-test/src/transcript.rs +++ b/zebra-test/src/transcript.rs @@ -1,16 +1,17 @@ //! A [`Service`](tower::Service) implementation based on a fixed transcript. +use std::{ + fmt::Debug, + sync::Arc, + task::{Context, Poll}, +}; + use color_eyre::{ eyre::{eyre, Report, WrapErr}, section::Section, section::SectionExt, }; use futures::future::{ready, Ready}; -use std::{ - fmt::Debug, - sync::Arc, - task::{Context, Poll}, -}; use tower::{Service, ServiceExt}; type BoxError = Box; @@ -90,7 +91,6 @@ where S: Debug + Eq, { /// Check this transcript against the responses from the `to_check` service - #[track_caller] pub async fn check(mut self, mut to_check: C) -> Result<(), Report> where C: Service,