From 1467740f60bf9fd3cbb1f977079136765387d65e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 24 Jan 2024 12:05:41 +0100 Subject: [PATCH] clippy --- src/routes/contrib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/contrib.rs b/src/routes/contrib.rs index ee1b844..ad51fd9 100644 --- a/src/routes/contrib.rs +++ b/src/routes/contrib.rs @@ -116,20 +116,20 @@ async fn build_page(config: Config) -> String { error: false, projects: Some( data.iter() + .filter(|&p| !p.pulls_merged.is_empty()) .cloned() - .filter(|p| !p.pulls_merged.is_empty()) .collect(), ), waiting: Some( data.iter() + .filter(|&p| !p.pulls_open.is_empty()) .cloned() - .filter(|p| !p.pulls_open.is_empty()) .collect(), ), closed: Some( data.iter() + .filter(|&p| !p.pulls_closed.is_empty()) .cloned() - .filter(|p| !p.pulls_closed.is_empty()) .collect(), ), }