Skip to content

Commit

Permalink
feat(complete): Make Shells::builtins const
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 16, 2024
1 parent 97deaf4 commit 661ccc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clap_complete/src/dynamic/env/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}

Expand Down

0 comments on commit 661ccc2

Please sign in to comment.