matrix-sdk: Simplify the registration example.

master
Damir Jelić 2020-08-26 14:16:31 +02:00
parent 2995cebd57
commit deff66ac42
1 changed files with 0 additions and 7 deletions

View File

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