Skip to content

Commit

Permalink
Add more derive impl for HistoryItemId (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément Nerma authored Nov 11, 2023
1 parent 16ac441 commit 01e32da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/history/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serde::{de::DeserializeOwned, Deserialize, Serialize};
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)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct HistoryItemId(pub(crate) i64);
impl HistoryItemId {
pub(crate) const fn new(i: i64) -> HistoryItemId {
Expand Down

0 comments on commit 01e32da

Please sign in to comment.