chore: Clippy fixes

This commit is contained in:
Ginger
2026-04-27 16:52:12 -04:00
parent 6b0b8344d4
commit f269fb5cfc
10 changed files with 21 additions and 26 deletions
+4 -2
View File
@@ -83,8 +83,8 @@ enum UiaaSessionMetadata {
impl UiaaSessionMetadata {
fn into_identity(self) -> Identity {
match self {
| UiaaSessionMetadata::Legacy { identity } => identity,
| UiaaSessionMetadata::OAuth { localpart, .. } =>
| Self::Legacy { identity } => identity,
| Self::OAuth { localpart, .. } =>
assign!(Identity::default(), { localpart: Some(localpart) }),
}
}
@@ -98,10 +98,12 @@ pub struct UiaaInitiator<'a> {
}
impl<'a> UiaaInitiator<'a> {
#[must_use]
pub fn new(user_id: &'a UserId, device_id: Option<&'a DeviceId>) -> Self {
Self { user_id, device_id, oauth_ticket: None }
}
#[must_use]
pub fn with_oauth_ticket(
user_id: &'a UserId,
device_id: Option<&'a DeviceId>,