Update ruma

This commit is contained in:
chenyuqide authored and Timo Kösters committed 2022-04-07 12:56:12 +02:00
1 parent 1ce03059a0
commit 21bc099ccf
4 files changed
+38 -36

No files matched your search

+2 -2
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,