From 2df30843ada73978d57bd0d85462320425fd0417 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter <daniel.hofstetter@42dh.com> Date: Fri, 8 Nov 2024 14:55:52 +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 0063454..b00a407 100644 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -176,7 +176,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, { @@ -191,7 +191,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, { @@ -206,7 +206,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, { @@ -221,7 +221,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, {