mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
fallout
This commit is contained in:
parent
6edc6a13d4
commit
ba8653a8da
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue