refactor: replace DeviceId with str or String

This commit is contained in:
timokoesters 2020-06-07 18:38:00 +02:00
parent b4d65ab67d
commit 588049678b
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
4 changed files with 29 additions and 29 deletions

View file

@ -11,7 +11,7 @@ use ruma::{
},
},
events::{to_device::AnyToDeviceEvent, EventJson, EventType},
identifiers::{DeviceId, UserId},
identifiers::UserId,
};
use serde_json::value::RawValue;
use std::{collections::BTreeMap, convert::TryFrom, time::SystemTime};
@ -29,7 +29,7 @@ impl Uiaa {
pub fn try_auth(
&self,
user_id: &UserId,
device_id: &DeviceId,
device_id: &str,
auth: &AuthData,
uiaainfo: &UiaaInfo,
users: &super::users::Users,