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 }, ))