From a3f6b973357cd0b5c05004e4b89d99cf1c07aa4b Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Tue, 29 Sep 2026 12:12:38 +0200 Subject: [PATCH] clippy: elide the needless lifetimes of series_patches_to_apply CI lints with -Dwarnings; the explicit 'a lifetime on series_patches_to_apply triggers needless_lifetimes and would fail the gate. --- src/deb/local.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deb/local.rs b/src/deb/local.rs index b57e55b..da01552 100644 --- a/src/deb/local.rs +++ b/src/deb/local.rs @@ -961,7 +961,7 @@ fn is_debian_changes(entry: &str) -> bool { /// lines never apply; in a `single-debian-patch` tree the ambient /// 'debian-changes[-]' entries are dropped (their content stays in /// the working tree — `quilt push -a` would refuse them). -fn series_patches_to_apply<'a>(series_content: &'a str, single_debian_patch: bool) -> Vec<&'a str> { +fn series_patches_to_apply(series_content: &str, single_debian_patch: bool) -> Vec<&str> { series_content .lines() .map(str::trim)