Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
octol committed Feb 19, 2025
1 parent 5f01128 commit f1029b5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -745,20 +745,18 @@ where
self.user_agent.clone(),
static_api_addresses.as_deref(),
)
.and_then(|new_vpn_api_client| {
.map(|new_vpn_api_client| {
self.vpn_api_client = new_vpn_api_client.clone();
self.waiting_sync_account_command_handler
.update_vpn_api_client(new_vpn_api_client.clone());
self.waiting_sync_device_command_handler
.update_vpn_api_client(new_vpn_api_client.clone());
self.waiting_request_zknym_command_handler
.update_vpn_api_client(new_vpn_api_client);
Ok(())
})
.map_err(|e| {
AccountCommandError::internal(format!(
"Failed to set static addresses: {}",
e.to_string()
"Failed to set static addresses: {e}",
))
}),
);
Expand Down

0 comments on commit f1029b5

Please sign in to comment.