File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 3
3
use nfa:: NFA ;
4
4
use nfa:: CharacterClass ;
5
5
use std:: collections:: BTreeMap ;
6
+ use std:: cmp:: Ordering ;
7
+ use std:: ops:: Index ;
6
8
7
9
pub mod nfa;
8
10
@@ -23,19 +25,19 @@ impl Metadata {
23
25
impl Ord for Metadata {
24
26
fn cmp ( & self , other : & Metadata ) -> Ordering {
25
27
if self . stars > other. stars {
26
- Less
28
+ Ordering :: Less
27
29
} else if self . stars < other. stars {
28
- Greater
30
+ Ordering :: Greater
29
31
} else if self . dynamics > other. dynamics {
30
- Less
32
+ Ordering :: Less
31
33
} else if self . dynamics < other. dynamics {
32
- Greater
34
+ Ordering :: Greater
33
35
} else if self . statics > other. statics {
34
- Less
36
+ Ordering :: Less
35
37
} else if self . statics < other. statics {
36
- Greater
38
+ Ordering :: Greater
37
39
} else {
38
- Equal
40
+ Ordering :: Equal
39
41
}
40
42
}
41
43
}
You can’t perform that action at this time.
0 commit comments