From 37c3c0cc4ecd1f3b4ab17e8473641b11978cef36 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 11 Aug 2025 19:50:41 +0300 Subject: [PATCH] remove extra lines --- src/main.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index 91cc5f0..6e88822 100644 --- a/src/main.rs +++ b/src/main.rs @@ -94,14 +94,12 @@ fn index( } }) .collect::>(), - pagination_totals: if total > 0 { - Some(format!( - "Page {} / {} ({total} {} total)", - page.unwrap_or(1), - (total as f64 / public.default_limit as f64).ceil(), - total.plurify(&["torrent", "torrents", "torrents"]) - )) - } else { None }, + pagination_totals: if total > 0 { Some(format!( + "Page {} / {} ({total} {} total)", + page.unwrap_or(1), + (total as f64 / public.default_limit as f64).ceil(), + total.plurify(&["torrent", "torrents", "torrents"]) + )) } else { None }, search }, ))