mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
feat(complete): Make Shells::builtins const
This commit is contained in:
parent
97deaf4194
commit
661ccc2d30
1 changed files with 1 additions and 1 deletions
2
clap_complete/src/dynamic/env/mod.rs
vendored
2
clap_complete/src/dynamic/env/mod.rs
vendored
|
@ -232,7 +232,7 @@ pub struct Shells<'s>(pub &'s [&'s dyn EnvCompleter]);
|
|||
|
||||
impl<'s> Shells<'s> {
|
||||
/// Select all of the built-in shells
|
||||
pub fn builtins() -> Self {
|
||||
pub const fn builtins() -> Self {
|
||||
Self(&[&Bash, &Elvish, &Fish, &Powershell, &Zsh])
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue