Skip to content

Commit

Permalink
Fix clippy lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenperera committed Jan 8, 2023
1 parent 6cddfde commit f6cf8f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ fn main() {

if args.to_hex && args.kind.is_some() {
println!("provide either `--to-hex` OR a `--kind` to convert to. one or the other.");
return
return;
}

if args.to_hex {
let (_, data, _) = bech32::decode(&args.key).expect("could not decode data");
println!("{}", hex::encode(Vec::<u8>::from_base32(&data).unwrap()));
return;
} else {
let hrp = match args.kind.unwrap() {
Prefix::Npub => "npub",
Expand Down

0 comments on commit f6cf8f5

Please sign in to comment.