From 0c0f81c5dbc024344abe2e2128c7c7b948d14e91 Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Fri, 29 Mar 2024 17:37:19 +0900 Subject: [PATCH] change `Arg::with_name` to `Arg::new` --- clap-v3-utils/src/compute_budget.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clap-v3-utils/src/compute_budget.rs b/clap-v3-utils/src/compute_budget.rs index 7b34e114b42883..b2f43f6851a8ea 100644 --- a/clap-v3-utils/src/compute_budget.rs +++ b/clap-v3-utils/src/compute_budget.rs @@ -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")