Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
volovyks committed Apr 22, 2023
1 parent d2bb3d5 commit ad957c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion integration-tests/tests/mpc/positive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async fn test_basic_action() -> anyhow::Result<()> {
let (status_code, add_key_response) = ctx
.leader_node
.add_key(AddKeyRequest {
near_account_id: account_id.to_string(),
near_account_id: Some(account_id.to_string()),
oidc_token: token::valid(),
public_key: new_user_public_key.clone(),
})
Expand Down
8 changes: 2 additions & 6 deletions mpc-recovery/src/leader_node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,9 @@ fn get_acc_id_from_pk(
public_key: PublicKey,
account_lookup_url: String,
) -> Result<AccountId, anyhow::Error> {
let url = format!(
"{}/publicKey/{}/accounts",
account_lookup_url,
public_key.to_string()
);
let url = format!("{}/publicKey/{}/accounts", account_lookup_url, public_key);
let client = reqwest::blocking::Client::new();
let response = client.get(&url).send()?.text()?;
let response = client.get(url).send()?.text()?;
let accounts: Vec<String> = serde_json::from_str(&response)?;
Ok(accounts
.first()
Expand Down

0 comments on commit ad957c9

Please sign in to comment.