Skip to content

Commit

Permalink
Fix clippy for new rust stable release
Browse files Browse the repository at this point in the history
  • Loading branch information
toml01 committed Dec 18, 2022
1 parent f0fa15b commit 64717d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/permit/src/funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn validate<Permission: Permissions>(
let pubkey = &permit.signature.pub_key.value;

let base32_addr = pubkey_to_account(pubkey).0.as_slice().to_base32();
let account: String = bech32::encode(account_hrp, &base32_addr, Variant::Bech32).unwrap();
let account: String = bech32::encode(account_hrp, base32_addr, Variant::Bech32).unwrap();

// Validate permit_name
let permit_name = &permit.params.permit_name;
Expand Down

0 comments on commit 64717d7

Please sign in to comment.