Skip to content

Commit ba8653a

Browse files
committed
fallout
1 parent 6edc6a1 commit ba8653a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ impl PartialOrd for Constant {
164164
}
165165
}
166166
(&Constant::Bool(ref l), &Constant::Bool(ref r)) => Some(l.cmp(r)),
167+
(&Constant::Tuple(ref l), &Constant::Tuple(ref r)) |
167168
(&Constant::Vec(ref l), &Constant::Vec(ref r)) => l.partial_cmp(r),
168169
(&Constant::Repeat(ref lv, ref ls), &Constant::Repeat(ref rv, ref rs)) => {
169170
match lv.partial_cmp(rv) {
170171
Some(Equal) => Some(ls.cmp(rs)),
171172
x => x,
172173
}
173174
}
174-
(&Constant::Tuple(ref l), &Constant::Tuple(ref r)) => l.partial_cmp(r),
175175
_ => None, //TODO: Are there any useful inter-type orderings?
176176
}
177177
}

0 commit comments

Comments
 (0)