mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-09-03 05:40:15 +00:00
chore: clippy
This commit is contained in:
parent
efb98d28ef
commit
d1d598940d
@ -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();
|
||||
|
@ -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)]
|
||||
|
@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user