diff options
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/fixtures/future.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/test/fixtures/future.rs b/src/test/fixtures/future.rs index c0fa528..86aba53 100644 --- a/src/test/fixtures/future.rs +++ b/src/test/fixtures/future.rs @@ -15,7 +15,7 @@ pub trait Expect: Sized { // and panics with the provided message if it is not. // // For stream operations, can be used to assert immediate completion. - fn expect_ready(self, message: &str) -> Ready<Self> + fn expect_ready(self, message: &str) -> Ready<'_, Self> where Self: Future; @@ -26,7 +26,7 @@ pub trait Expect: Sized { // // For stream operations, can be used to assert that completion hasn't happened // yet. - fn expect_wait(self, message: &str) -> Wait<Self> + fn expect_wait(self, message: &str) -> Wait<'_, Self> where Self: Future; @@ -37,7 +37,7 @@ pub trait Expect: Sized { // // For stream operations, can be used to assert that the stream has at least one // message. - fn expect_some<T>(self, message: &str) -> Some<Self> + fn expect_some<T>(self, message: &str) -> Some<'_, Self> where Self: Future<Output = Option<T>>; @@ -47,27 +47,27 @@ pub trait Expect: Sized { // fixed. // // For stream operations, can be used to assert that the stream has ended. - fn expect_none<T>(self, message: &str) -> None<Self> + fn expect_none<T>(self, message: &str) -> None<'_, Self> where Self: Future<Output = Option<T>>; } impl<St> Expect for stream::Next<'_, St> { - fn expect_ready(self, message: &str) -> Ready<Self> { + fn expect_ready(self, message: &str) -> Ready<'_, Self> { Ready { future: self, message, } } - fn expect_wait(self, message: &str) -> Wait<Self> { + fn expect_wait(self, message: &str) -> Wait<'_, Self> { Wait { future: self, message, } } - fn expect_some<T>(self, message: &str) -> Some<Self> + fn expect_some<T>(self, message: &str) -> Some<'_, Self> where Self: Future<Output = Option<T>>, { @@ -77,7 +77,7 @@ impl<St> Expect for stream::Next<'_, St> { } } - fn expect_none<T>(self, message: &str) -> None<Self> + fn expect_none<T>(self, message: &str) -> None<'_, Self> where Self: Future<Output = Option<T>>, { @@ -89,21 +89,21 @@ impl<St> Expect for stream::Next<'_, St> { } impl<St, C> Expect for stream::Collect<St, C> { - fn expect_ready(self, message: &str) -> Ready<Self> { + fn expect_ready(self, message: &str) -> Ready<'_, Self> { Ready { future: self, message, } } - fn expect_wait(self, message: &str) -> Wait<Self> { + fn expect_wait(self, message: &str) -> Wait<'_, Self> { Wait { future: self, message, } } - fn expect_some<T>(self, message: &str) -> Some<Self> + fn expect_some<T>(self, message: &str) -> Some<'_, Self> where Self: Future<Output = Option<T>>, { @@ -113,7 +113,7 @@ impl<St, C> Expect for stream::Collect<St, C> { } } - fn expect_none<T>(self, message: &str) -> None<Self> + fn expect_none<T>(self, message: &str) -> None<'_, Self> where Self: Future<Output = Option<T>>, { |
