Update ruma

This commit is contained in:
chenyuqide 2022-03-04 08:08:32 +08:00 committed by Timo Kösters
parent 1ce03059a0
commit 21bc099ccf
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
4 changed files with 38 additions and 36 deletions

View file

@ -8,7 +8,7 @@ use ruma::{
api::client::{
error::ErrorKind,
uiaa::{
AuthType, IncomingAuthData, IncomingPassword, IncomingUserIdentifier::MatrixId,
AuthType, IncomingAuthData, IncomingPassword, IncomingUserIdentifier::UserIdOrLocalpart,
UiaaInfo,
},
},
@ -74,7 +74,7 @@ impl Uiaa {
..
}) => {
let username = match identifier {
MatrixId(username) => username,
UserIdOrLocalpart(username) => username,
_ => {
return Err(Error::BadRequest(
ErrorKind::Unrecognized,