From c86e31648add618a2be6c47b25b515adc9fbc27e Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Sun, 19 Jun 2022 13:01:25 -0400 Subject: [PATCH] fix some warnings --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 42ab209..07b5ff5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ use steamguard::{ SteamGuardAccount, UserLogin, }; -use crate::{accountmanager::ManifestAccountLoadError}; +use crate::accountmanager::ManifestAccountLoadError; #[macro_use] extern crate lazy_static; @@ -135,7 +135,7 @@ fn run() -> anyhow::Result<()> { _ => {}, } - let mut selected_accounts: Vec>>; + let selected_accounts: Vec>>; loop { match get_selected_accounts(&args, &mut manifest) { Ok(accounts) => { @@ -529,7 +529,7 @@ fn do_subcmd_trade(args: cli::ArgsTrade, manifest: &mut accountmanager::Manifest return Ok(()); } -fn do_subcmd_remove(args: cli::ArgsRemove, manifest: &mut accountmanager::Manifest, selected_accounts: Vec>>) -> anyhow::Result<()> { +fn do_subcmd_remove(_args: cli::ArgsRemove, manifest: &mut accountmanager::Manifest, selected_accounts: Vec>>) -> anyhow::Result<()> { println!( "This will remove the mobile authenticator from {} accounts: {}", selected_accounts.len(), @@ -589,7 +589,7 @@ fn do_subcmd_remove(args: cli::ArgsRemove, manifest: &mut accountmanager::Manife return Ok(()); } -fn do_subcmd_encrypt(args: cli::ArgsEncrypt, manifest: &mut accountmanager::Manifest) -> anyhow::Result<()> { +fn do_subcmd_encrypt(_args: cli::ArgsEncrypt, manifest: &mut accountmanager::Manifest) -> anyhow::Result<()> { if !manifest.has_passkey() { let mut passkey; loop { @@ -611,7 +611,7 @@ fn do_subcmd_encrypt(args: cli::ArgsEncrypt, manifest: &mut accountmanager::Mani return Ok(()); } -fn do_subcmd_decrypt(args: cli::ArgsDecrypt, manifest: &mut accountmanager::Manifest) -> anyhow::Result<()> { +fn do_subcmd_decrypt(_args: cli::ArgsDecrypt, manifest: &mut accountmanager::Manifest) -> anyhow::Result<()> { manifest.load_accounts()?; for entry in &mut manifest.entries { entry.encryption = None;