fix: clippy fixes
All checks were successful
Test / build (map[name:nightly]) (push) Successful in 12m15s
Test / build (map[name:stable]) (push) Successful in 12m37s
Release Please / Release-plz (push) Successful in 1m26s
Release Please / Docker image (push) Successful in 9m26s

This commit is contained in:
Paul Campbell 2025-01-23 08:34:51 +00:00
parent 030129a746
commit a605c3499a

View file

@ -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,
}
}