diff options
Diffstat (limited to 'alacritty_terminal/src/index.rs')
-rw-r--r-- | alacritty_terminal/src/index.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/alacritty_terminal/src/index.rs b/alacritty_terminal/src/index.rs index 51566d8d..56d32003 100644 --- a/alacritty_terminal/src/index.rs +++ b/alacritty_terminal/src/index.rs @@ -73,12 +73,11 @@ impl<L> Point<L> { impl Ord for Point { fn cmp(&self, other: &Point) -> Ordering { - use std::cmp::Ordering::*; match (self.line.cmp(&other.line), self.col.cmp(&other.col)) { - (Equal, Equal) => Equal, - (Equal, ord) | (ord, Equal) => ord, - (Less, _) => Less, - (Greater, _) => Greater, + (Ordering::Equal, Ordering::Equal) => Ordering::Equal, + (Ordering::Equal, ord) | (ord, Ordering::Equal) => ord, + (Ordering::Less, _) => Ordering::Less, + (Ordering::Greater, _) => Ordering::Greater, } } } |