diff --git a/crates/cli/src/tui/actor/model.rs b/crates/cli/src/tui/actor/model.rs index d99a15d..1ef6188 100644 --- a/crates/cli/src/tui/actor/model.rs +++ b/crates/cli/src/tui/actor/model.rs @@ -253,11 +253,11 @@ pub enum RepoState { }, } impl RepoState { - pub fn repo_alias(&self) -> &RepoAlias { + pub const fn repo_alias(&self) -> &RepoAlias { match self { - RepoState::Identified { repo_alias, .. } - | RepoState::Configured { repo_alias, .. } - | RepoState::Ready { repo_alias, .. } => repo_alias, + Self::Identified { repo_alias, .. } + | Self::Configured { repo_alias, .. } + | Self::Ready { repo_alias, .. } => repo_alias, } }