From ba8653a8da189aaa629bd1e70c09146e23671328 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 26 Apr 2016 17:06:08 +0200 Subject: [PATCH] fallout --- src/consts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/consts.rs b/src/consts.rs index 248b5bfe9..96956d179 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -164,6 +164,7 @@ impl PartialOrd for Constant { } } (&Constant::Bool(ref l), &Constant::Bool(ref r)) => Some(l.cmp(r)), + (&Constant::Tuple(ref l), &Constant::Tuple(ref r)) | (&Constant::Vec(ref l), &Constant::Vec(ref r)) => l.partial_cmp(r), (&Constant::Repeat(ref lv, ref ls), &Constant::Repeat(ref rv, ref rs)) => { match lv.partial_cmp(rv) { @@ -171,7 +172,6 @@ impl PartialOrd for Constant { x => x, } } - (&Constant::Tuple(ref l), &Constant::Tuple(ref r)) => l.partial_cmp(r), _ => None, //TODO: Are there any useful inter-type orderings? } }