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