From a605c3499a2e66ad4939a29f909e12663294ab7a Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 23 Jan 2025 08:34:51 +0000 Subject: [PATCH] fix: clippy fixes --- crates/cli/src/tui/actor/model.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, } }