From 8366173eb13b7a148a1b2facd665ee6a6b04aabe Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Tue, 6 Dec 2022 10:07:25 -0500 Subject: [PATCH] fix a couple of lints --- src/accountmanager.rs | 3 +++ .../{ITwoFactorService.rs => i_two_factor_service.rs} | 0 steamguard/src/api_responses/mod.rs | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) rename steamguard/src/api_responses/{ITwoFactorService.rs => i_two_factor_service.rs} (100%) diff --git a/src/accountmanager.rs b/src/accountmanager.rs index 88c37ab..f6d2597 100644 --- a/src/accountmanager.rs +++ b/src/accountmanager.rs @@ -257,10 +257,12 @@ impl Manifest { } /// Return all loaded accounts. Order is not guarenteed. + #[allow(dead_code)] pub fn get_all_loaded(&self) -> Vec>> { return self.accounts.values().cloned().into_iter().collect(); } + #[allow(dead_code)] pub fn get_entry( &self, account_name: &String, @@ -271,6 +273,7 @@ impl Manifest { .ok_or(ManifestAccountLoadError::MissingManifestEntry) } + #[allow(dead_code)] pub fn get_entry_mut( &mut self, account_name: &String, diff --git a/steamguard/src/api_responses/ITwoFactorService.rs b/steamguard/src/api_responses/i_two_factor_service.rs similarity index 100% rename from steamguard/src/api_responses/ITwoFactorService.rs rename to steamguard/src/api_responses/i_two_factor_service.rs diff --git a/steamguard/src/api_responses/mod.rs b/steamguard/src/api_responses/mod.rs index cd225fc..a2c0fc1 100644 --- a/steamguard/src/api_responses/mod.rs +++ b/steamguard/src/api_responses/mod.rs @@ -1,10 +1,10 @@ -mod ITwoFactorService; +mod i_two_factor_service; mod login; mod phone_ajax; +pub use i_two_factor_service::*; pub use login::*; pub use phone_ajax::*; -pub use ITwoFactorService::*; use serde::{Deserialize, Deserializer};