From a1c223f181e3c43b81a7e9ce105fb795f165cb04 Mon Sep 17 00:00:00 2001 From: icp Date: Sat, 4 May 2024 00:19:39 +0530 Subject: [PATCH] zet: fix for rust-178 --- srcpkgs/zet/patches/fix-rust178.patch | 23 +++++++++++++++++++++++ srcpkgs/zet/template | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/zet/patches/fix-rust178.patch diff --git a/srcpkgs/zet/patches/fix-rust178.patch b/srcpkgs/zet/patches/fix-rust178.patch new file mode 100644 index 00000000000..839a4113995 --- /dev/null +++ b/srcpkgs/zet/patches/fix-rust178.patch @@ -0,0 +1,23 @@ +From b6a0c67f6ac76fb7bf8234951678b77fbac12d76 Mon Sep 17 00:00:00 2001 +From: Yarrow Angelweed +Date: Wed, 6 Mar 2024 12:17:38 -0500 +Subject: [PATCH] Take nightly clippy advice + +--- + src/help.rs | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/src/help.rs b/src/help.rs +index 23c79aa..0e8c3c3 100644 +--- a/src/help.rs ++++ b/src/help.rs +@@ -123,8 +123,7 @@ impl<'a> Section<'a> { + Ok(0) + } + fn next_line_help_indent(&self) -> &'a str { +- let max_indent = +- self.entries.iter().map(|e| e.item.indented_by()).fold(0, std::cmp::Ord::max); ++ let max_indent = self.entries.iter().map(|e| e.item.indented_by()).fold(0, Ord::max); + let indent_len = (max_indent + 4).min(BLANKS.len()); + &BLANKS[..indent_len] + } diff --git a/srcpkgs/zet/template b/srcpkgs/zet/template index 86c2fdad2b2..e1d88e28136 100644 --- a/srcpkgs/zet/template +++ b/srcpkgs/zet/template @@ -1,7 +1,7 @@ # Template file for 'zet' pkgname=zet version=1.0.0 -revision=1 +revision=2 build_style=cargo short_desc="CLI to find union, intersection, set difference, etc of files" maintainer="icp "