mirror of
https://github.com/nushell/nushell.git
synced 2025-08-11 08:05:34 +02:00
Match cleanup (#2248)
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user