Skip to content

Commit

Permalink
chore: fix formatting and new lints (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 authored Dec 19, 2024
1 parent 296a183 commit e661314
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 20 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/accountmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ impl AccountManager {
/// Return all loaded accounts. Order is not guarenteed.
#[allow(dead_code)]
pub fn get_all_loaded(&self) -> Vec<Arc<Mutex<SteamGuardAccount>>> {
return self.accounts.values().cloned().collect();
self.accounts.values().cloned().collect()
}

#[allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,5 +319,5 @@ fn get_mafiles_dir() -> String {
}
}

return paths[0].to_str().unwrap().into();
paths[0].to_str().unwrap().into()
}
4 changes: 2 additions & 2 deletions src/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ pub(crate) fn prompt_confirmation_menu(
execute!(stdout(), LeaveAlternateScreen)?;
crossterm::terminal::disable_raw_mode()?;

return Ok((
Ok((
to_accept_idx
.iter()
.map(|i| confirmations[*i].clone())
Expand All @@ -238,7 +238,7 @@ pub(crate) fn prompt_confirmation_menu(
.iter()
.map(|i| confirmations[*i].clone())
.collect(),
));
))
}

pub(crate) fn pause() {
Expand Down
8 changes: 4 additions & 4 deletions steamguard/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ maplit = "1.0.2"
thiserror = "1.0.26"
secrecy = { version = "0.8", features = ["serde"] }
zeroize = { version = "^1.6.0", features = ["std", "zeroize_derive"] }
protobuf = "3.2.0"
protobuf-json-mapping = "3.2.0"
protobuf = "3.7.1"
protobuf-json-mapping = "3.7.1"
phonenumber = "0.3"
serde_path_to_error = "0.1.11"
hmac = "^0.12"
Expand All @@ -43,5 +43,5 @@ num_enum = "0.7.2"

[build-dependencies]
anyhow = "^1.0"
protobuf = "3.2.0"
protobuf-codegen = "3.2.0"
protobuf = "3.7.1"
protobuf-codegen = "3.7.1"
3 changes: 2 additions & 1 deletion steamguard/src/steamapi/phone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ where
&self,
req: CPhone_IsAccountWaitingForEmailConfirmation_Request,
access_token: &Jwt,
) -> Result<ApiResponse<CPhone_IsAccountWaitingForEmailConfirmation_Response>, TransportError> {
) -> Result<ApiResponse<CPhone_IsAccountWaitingForEmailConfirmation_Response>, TransportError>
{
let req = ApiRequest::new(
SERVICE_NAME,
"IsAccountWaitingForEmailConfirmation",
Expand Down

0 comments on commit e661314

Please sign in to comment.