matrix-sdk: Simplify the registration example.

This commit is contained in:
Damir Jelić 2020-08-26 14:16:31 +02:00
parent 2995cebd57
commit deff66ac42

View file

@ -534,10 +534,6 @@ impl Client {
/// username: Some("user"),
/// password: Some("password"),
/// auth: Some(AuthData::FallbackAcknowledgement { session: "foobar" }),
/// kind: RegistrationKind::User,
/// device_id: None,
/// initial_device_display_name: None,
/// inhibit_login: false,
/// });
/// let client = Client::new(homeserver).unwrap();
/// client.register(request).await;
@ -1707,9 +1703,6 @@ mod test {
password: Some("password"),
auth: Some(AuthData::FallbackAcknowledgement { session: "foobar" }),
kind: RegistrationKind::User,
device_id: None,
initial_device_display_name: None,
inhibit_login: false,
});
if let Err(err) = client.register(user).await {