Skip to content

Commit

Permalink
impl From<usize> for Count (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
conorbros authored Oct 20, 2023
1 parent 40cad0e commit 091dd9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tokio-bin-process/src/event_matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ pub enum Count {
Any,
}

impl From<usize> for Count {
fn from(item: usize) -> Self {
Self::Times(item)
}
}

impl Default for Count {
fn default() -> Self {
Count::Times(1)
Expand Down

0 comments on commit 091dd9c

Please sign in to comment.