Match cleanup (#2248)

This commit is contained in:
Joseph T. Lyons
2020-07-25 08:40:35 -04:00
committed by GitHub
parent a77f0f7b41
commit de18b9ca2c
12 changed files with 40 additions and 123 deletions

View File

@ -64,10 +64,7 @@ impl Ord for Dictionary {
impl PartialEq<Value> for Dictionary {
/// Test a dictionary against a Value for equality
fn eq(&self, other: &Value) -> bool {
match &other.value {
UntaggedValue::Row(d) => self == d,
_ => false,
}
matches!(&other.value, UntaggedValue::Row(d) if self == d)
}
}