Skip to content

Commit

Permalink
[clap-v3-utils] Fix deprecation message of is_valid_pubkey and `is_…
Browse files Browse the repository at this point in the history
…valid_signer` to `allow_all()` (#531)

fix deprecation message of `is_valid_pubkey` and `is_valid_signer` to `allow_all()`
  • Loading branch information
samkim-crypto authored Apr 2, 2024
1 parent 4247a8a commit 85c14b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clap-v3-utils/src/input_validators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(string: T) -> Result<(), String>
Expand All @@ -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<T>(string: T) -> Result<(), String>
Expand Down

0 comments on commit 85c14b4

Please sign in to comment.