From 157b36d305c7a73eee217398d8a356ed13674f9f Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 10 Jan 2024 16:09:03 +0100 Subject: [PATCH] xtask: Simplify match arm Thanks to clippy for the lint! --- xtask/src/cargo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/cargo.rs b/xtask/src/cargo.rs index 337517fa..b10440e1 100644 --- a/xtask/src/cargo.rs +++ b/xtask/src/cargo.rs @@ -138,7 +138,7 @@ impl Package { }; let changes = match changelog[changes_start..changes_end].trim() { - s if s.is_empty() => "No changes for this version", + "" => "No changes for this version", s => s, };