Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Jan 29, 2025
1 parent 005e15f commit 0016c38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions psst-gui/src/data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,12 @@ pub struct Alert {
pub created_at: Instant,
}

impl Alert {
pub fn fresh_id() -> usize {
ALERT_ID.fetch_add(1, Ordering::Relaxed)
}
}

#[derive(Clone, Data, Eq, PartialEq)]
pub enum AlertStyle {
Error,
Expand Down

0 comments on commit 0016c38

Please sign in to comment.