chore: clippy

This commit is contained in:
Nathan 2025-04-08 16:05:52 +08:00
parent efb98d28ef
commit d1d598940d
3 changed files with 0 additions and 6 deletions

View File

@ -70,7 +70,6 @@ class BackendAuthService implements AuthService {
..name = LocaleKeys.defaultUsername.tr()
..email = userEmail
..password = password
..isAnon = true
// When sign up as guest, the auth type is always local.
..authType = AuthenticatorPB.Local
..deviceId = await getDeviceId();

View File

@ -42,7 +42,6 @@ pub struct SignUpParams {
pub password: String,
pub auth_type: Authenticator,
pub device_id: String,
pub is_anon: bool,
}
#[derive(Serialize, Deserialize, Debug, Clone)]

View File

@ -57,9 +57,6 @@ pub struct SignUpPayloadPB {
#[pb(index = 5)]
pub device_id: String,
#[pb(index = 6)]
pub is_anon: bool,
}
impl TryInto<SignUpParams> for SignUpPayloadPB {
@ -76,7 +73,6 @@ impl TryInto<SignUpParams> for SignUpPayloadPB {
password: password.0,
auth_type: self.auth_type.into(),
device_id: self.device_id,
is_anon: self.is_anon,
})
}
}