mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
fix(complete)!: Remove deprecated Shell::possible_values
This commit is contained in:
parent
0405966896
commit
fbd6e19f05
1 changed files with 0 additions and 10 deletions
|
@ -22,16 +22,6 @@ pub enum Shell {
|
|||
Zsh,
|
||||
}
|
||||
|
||||
impl Shell {
|
||||
/// Deprecated, replaced with [`EnumValueParser`][clap::builder::EnumValueParser]
|
||||
#[deprecated(since = "3.2.0", note = "Replaced with `EnumValueParser`")]
|
||||
pub fn possible_values() -> impl Iterator<Item = PossibleValue<'static>> {
|
||||
Shell::value_variants()
|
||||
.iter()
|
||||
.filter_map(ValueEnum::to_possible_value)
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for Shell {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
self.to_possible_value()
|
||||
|
|
Loading…
Reference in a new issue