Skip to content

Commit

Permalink
chore: simplify Priority enum in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
linyihai committed Aug 13, 2024
1 parent f5665bd commit a87ebeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/priority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ use futures_lite::{future, prelude::*};
#[repr(usize)]
#[derive(Debug, Clone, Copy)]
enum Priority {
High = 0,
Medium = 1,
Low = 2,
High,
Medium,
Low,
}

/// An executor with task priorities.
Expand Down

0 comments on commit a87ebeb

Please sign in to comment.