mirror of
https://github.com/uutils/bsdutils.git
synced 2026-06-10 16:14:07 -07:00
tests: fix "elided lifetime has a name" warnings
This commit is contained in:
@@ -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,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user