From 85c14b4e4f003f2e354500ce7bdf56995f6eb4c7 Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Wed, 3 Apr 2024 07:16:53 +0900 Subject: [PATCH] [clap-v3-utils] Fix deprecation message of `is_valid_pubkey` and `is_valid_signer` to `allow_all()` (#531) fix deprecation message of `is_valid_pubkey` and `is_valid_signer` to `allow_all()` --- clap-v3-utils/src/input_validators.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clap-v3-utils/src/input_validators.rs b/clap-v3-utils/src/input_validators.rs index 0b3f75e1a..5ffe8499b 100644 --- a/clap-v3-utils/src/input_validators.rs +++ b/clap-v3-utils/src/input_validators.rs @@ -150,7 +150,7 @@ where // produce a pubkey() #[deprecated( since = "1.18.0", - note = "please use `SignerSourceParserBuilder::default().allow_pubkey().allow_file_path().build()` instead" + note = "please use `SignerSourceParserBuilder::default().allow_all().build()` instead" )] #[allow(deprecated)] pub fn is_valid_pubkey(string: T) -> Result<(), String> @@ -176,7 +176,7 @@ where // also provided and correct happens in parsing, not in validation. #[deprecated( since = "1.18.0", - note = "please use `SignerSourceParserBuilder::default().build()` instead" + note = "please use `SignerSourceParserBuilder::default().allow_all().build()` instead" )] #[allow(deprecated)] pub fn is_valid_signer(string: T) -> Result<(), String>