From 6028e07bde9b0fcf1e152fc4b68f08c1d90fcbc5 Mon Sep 17 00:00:00 2001 From: glyph Date: Mon, 28 Nov 2022 09:12:25 +0200 Subject: [PATCH] single variable name change for clarity --- peach-web/src/templates/nav.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/peach-web/src/templates/nav.rs b/peach-web/src/templates/nav.rs index 0919fcd..a2e19f6 100644 --- a/peach-web/src/templates/nav.rs +++ b/peach-web/src/templates/nav.rs @@ -14,7 +14,7 @@ pub fn build_template( let theme = theme::get_theme(); // conditionally render the hermies icon and theme-switcher icon with correct link - let (hermies, switcher) = match theme.as_str() { + let (hermies, theme_switcher) = match theme.as_str() { // if we're using the dark theme, render light icons and "light" query param "dark" => ( "/icons/hermies_hex_light.svg", @@ -56,8 +56,7 @@ pub fn build_template( a class="nav-item" href="/" { img class="icon nav-icon-left" src="/icons/peach-icon.png" alt="PeachCloud" title="Home"; } - // render the pre-defined theme-switcher icon - (switcher) + (theme_switcher) } } }