chore: Inline small functions

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-07-01 15:20:30 +00:00
parent 7e479f3c7a
commit 9e1e5d7c42
4 changed files with 30 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ pub enum IssueStatus {
impl IssueStatus {
/// Maps the issue status to its corresponding Nostr kind.
#[inline]
pub fn kind(&self) -> Kind {
match self {
Self::Open => Kind::GitStatusOpen,
@@ -75,16 +76,19 @@ impl IssueStatus {
}
/// Check if the issue is open.
#[inline]
pub fn is_open(&self) -> bool {
matches!(self, Self::Open)
}
/// Check if the issue is resolved.
#[inline]
pub fn is_resolved(&self) -> bool {
matches!(self, Self::Resolved)
}
/// Check if the issue is closed.
#[inline]
pub fn is_closed(&self) -> bool {
matches!(self, Self::Closed)
}