[clap-v3-utils] Use `Arg::new` in place of `Arg::with_name` (#491)

This commit is contained in:
samkim-crypto 2024-03-30 06:37:19 +09:00 committed by GitHub
parent 18c32aba35
commit c5b9196df7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ pub const COMPUTE_UNIT_LIMIT_ARG: ArgConstant<'static> = ArgConstant {
};
pub fn compute_unit_price_arg<'a>() -> Arg<'a> {
Arg::with_name(COMPUTE_UNIT_PRICE_ARG.name)
Arg::new(COMPUTE_UNIT_PRICE_ARG.name)
.long(COMPUTE_UNIT_PRICE_ARG.long)
.takes_value(true)
.value_name("COMPUTE-UNIT-PRICE")
@ -25,7 +25,7 @@ pub fn compute_unit_price_arg<'a>() -> Arg<'a> {
}
pub fn compute_unit_limit_arg<'a>() -> Arg<'a> {
Arg::with_name(COMPUTE_UNIT_LIMIT_ARG.name)
Arg::new(COMPUTE_UNIT_LIMIT_ARG.name)
.long(COMPUTE_UNIT_LIMIT_ARG.long)
.takes_value(true)
.value_name("COMPUTE-UNIT-LIMIT")