Skip to content

Commit

Permalink
feat: Implement Default trait for PrioQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
mantono committed Dec 7, 2023
1 parent e08dec8 commit a9eeec5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ where
}
}

impl<T> Default for PrioQueue<T>
where
T: Ord,
{
fn default() -> Self {
Self::new()
}
}

#[cfg(test)]
mod tests {
use super::PrioQueue;
Expand Down

0 comments on commit a9eeec5

Please sign in to comment.