Skip to content

Commit

Permalink
Replace type alias with absolute path import.
Browse files Browse the repository at this point in the history
Different way to workaround clap-rs/clap#4626.
  • Loading branch information
koxu1996 committed Feb 13, 2024
1 parent f543666 commit 5480acf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kairos-cli/bin/commands/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ use crate::utils::parse_hex_string;

use clap::Parser;

type StdVec<E> = Vec<E>;

#[derive(Parser)]
pub struct Args {
#[arg(long, short, value_name = "PUBLIC_KEY", value_parser = parse_hex_string)]
recipient: StdVec<u8>,
recipient: ::std::vec::Vec<u8>, // Absolute path is required here - see https://github.com/clap-rs/clap/issues/4626#issue-1528622454.
#[clap(flatten)]
amount: AmountArg,
#[clap(flatten)]
Expand Down

0 comments on commit 5480acf

Please sign in to comment.