From 6fec70d0a6a30d7216148b6f18bbe8ae0c97b5ac Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Tue, 12 Nov 2024 08:33:26 +0100 Subject: [PATCH] tests: fix "elided lifetime has a name" warnings --- tests/common/util.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/common/util.rs b/tests/common/util.rs index a8102f2..cfd914f 100644 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -171,7 +171,7 @@ impl CmdResult { /// Assert `stdout` as bytes with a predicate function returning a `bool`. #[track_caller] - pub fn stdout_check<'a, F>(&'a self, predicate: F) -> &Self + pub fn stdout_check<'a, F>(&'a self, predicate: F) -> &'a Self where F: Fn(&'a [u8]) -> bool, { @@ -186,7 +186,7 @@ impl CmdResult { /// Assert `stdout` as `&str` with a predicate function returning a `bool`. #[track_caller] - pub fn stdout_str_check<'a, F>(&'a self, predicate: F) -> &Self + pub fn stdout_str_check<'a, F>(&'a self, predicate: F) -> &'a Self where F: Fn(&'a str) -> bool, { @@ -201,7 +201,7 @@ impl CmdResult { /// Assert `stderr` as bytes with a predicate function returning a `bool`. #[track_caller] - pub fn stderr_check<'a, F>(&'a self, predicate: F) -> &Self + pub fn stderr_check<'a, F>(&'a self, predicate: F) -> &'a Self where F: Fn(&'a [u8]) -> bool, { @@ -216,7 +216,7 @@ impl CmdResult { /// Assert `stderr` as `&str` with a predicate function returning a `bool`. #[track_caller] - pub fn stderr_str_check<'a, F>(&'a self, predicate: F) -> &Self + pub fn stderr_str_check<'a, F>(&'a self, predicate: F) -> &'a Self where F: Fn(&'a str) -> bool, {