diff --git a/src/lib.rs b/src/lib.rs index a6862eb..3980f2a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -335,11 +335,9 @@ trait Merge { fn merge(self, other: Self) -> Self; fn merge_opts(this: Option, other: Option) -> Option { - match (this, other) { - (Some(t), Some(_)) => Some(t), - (Some(t), None) => Some(t), - (None, Some(o)) => Some(o), - (None, None) => None, + match &this { + Some(_) => this, + None => other, } }