Skip to content

Commit

Permalink
chore: fix rust linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kalvkusk committed Feb 20, 2024
1 parent 6d9895c commit 88383e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-tauri/src/key_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub fn get_keypair(
) -> Result<KeyPair<Ed25519PrivateKey, Ed25519PublicKey>, anyhow::Error> {
match get_private_key(address) {
Ok(k) => {
let p: KeyPair<Ed25519PrivateKey, Ed25519PublicKey> = match k.try_into() {
let p: KeyPair<Ed25519PrivateKey, Ed25519PublicKey> = match k.into() {
Ok(p) => p,
Err(e) => bail!(e),
};
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ fn read_legacy_accounts() {

let acc = read_accounts(&temp).unwrap();
assert!(
acc.accounts.get(0).unwrap().account
acc.accounts.first().unwrap().account
== AccountAddress::from_hex_literal("0x69a385e1744e33fbb24a42ecbd1603e3").unwrap()
);
std::fs::remove_file(temp).unwrap();
Expand Down

0 comments on commit 88383e4

Please sign in to comment.