From b4cd1d6295863237d11f64d8c90dfb42a7c2ec36 Mon Sep 17 00:00:00 2001 From: threadexception Date: Sun, 3 Mar 2024 19:35:46 +0100 Subject: [PATCH] Fix clippy --- src/screen/launcher.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/screen/launcher.rs b/src/screen/launcher.rs index c49462cf..1cef6173 100644 --- a/src/screen/launcher.rs +++ b/src/screen/launcher.rs @@ -216,7 +216,6 @@ impl super::Screen for Launcher { back.add_click_func(move |_, game| { let accounts = accounts.clone(); let account_type = account_type.clone(); - let idx = idx; let mut client_token = game.vars.get(auth::AUTH_CLIENT_TOKEN).clone(); if client_token.is_empty() { client_token = std::iter::repeat(()) @@ -333,7 +332,6 @@ impl super::Screen for Launcher { let accounts = self.accounts.clone(); btn.add_click_func(move |_, game| { let accounts = accounts.clone(); - let idx = idx; game.screen_sys.clone().add_screen(Box::new( super::confirm_box::ConfirmBox::new( String::from("Do you want to delete this account?"), @@ -371,7 +369,6 @@ impl super::Screen for Launcher { btn.add_click_func(move |_, game| { let accounts = accounts.clone(); let account_type = account_type.clone(); - let idx = idx; game.screen_sys.clone().add_screen(Box::new( super::edit_account::EditAccountEntry::new( Some((aname.clone(), apw.clone())),