crypto: Use Default to create some test data
parent
5c0f0140e9
commit
9893ddba74
|
@ -1345,7 +1345,7 @@ mod test {
|
||||||
|
|
||||||
*method = AcceptMethod::Custom(CustomContent {
|
*method = AcceptMethod::Custom(CustomContent {
|
||||||
method: "m.sas.custom".to_string(),
|
method: "m.sas.custom".to_string(),
|
||||||
data: vec![].into_iter().collect(),
|
data: Default::default(),
|
||||||
});
|
});
|
||||||
|
|
||||||
alice
|
alice
|
||||||
|
@ -1394,7 +1394,7 @@ mod test {
|
||||||
|
|
||||||
*method = StartMethod::Custom(CustomStartContent {
|
*method = StartMethod::Custom(CustomStartContent {
|
||||||
method: "m.sas.custom".to_string(),
|
method: "m.sas.custom".to_string(),
|
||||||
data: vec![].into_iter().collect(),
|
data: Default::default(),
|
||||||
});
|
});
|
||||||
|
|
||||||
SasState::<Started>::from_start_event(bob.clone(), alice_device, None, start_content)
|
SasState::<Started>::from_start_event(bob.clone(), alice_device, None, start_content)
|
||||||
|
|
Loading…
Reference in New Issue