Skip to content

Commit

Permalink
Allow to build HistoryItemId values from the outside
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNerma authored Dec 6, 2023
1 parent 37714c9 commit 259cb37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/history/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ use std::{fmt::Display, time::Duration};

/// Unique ID for the [`HistoryItem`]. More recent items have higher ids than older ones.
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct HistoryItemId(pub(crate) i64);
pub struct HistoryItemId(pub i64);

impl HistoryItemId {
pub(crate) const fn new(i: i64) -> HistoryItemId {
pub const fn new(i: i64) -> HistoryItemId {
HistoryItemId(i)
}
}
Expand Down

0 comments on commit 259cb37

Please sign in to comment.