events: Make assert_matches! invocations slight more compact

This commit is contained in:
Jonas Platte 2021-05-16 23:55:46 +02:00
parent 698d78a6f3
commit d7d449656c
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -545,10 +545,7 @@ mod tests {
content: StartToDeviceEventContent { content: StartToDeviceEventContent {
from_device, from_device,
transaction_id, transaction_id,
method: StartMethod::Custom(CustomContent { method: StartMethod::Custom(CustomContent { method, data })
method,
data,
})
} }
} if from_device == "123" } if from_device == "123"
&& sender == user_id!("@example:localhost") && sender == user_id!("@example:localhost")
@ -616,9 +613,7 @@ mod tests {
.unwrap(), .unwrap(),
StartEventContent { StartEventContent {
from_device, from_device,
relation: Relation { relation: Relation { event_id },
event_id,
},
method: StartMethod::MSasV1(MSasV1Content { method: StartMethod::MSasV1(MSasV1Content {
hashes, hashes,
key_agreement_protocols, key_agreement_protocols,