Changed i32 to usize for better conversion
This commit is contained in:
parent
684024b555
commit
3d363e81ac
|
@ -7,7 +7,7 @@ pub enum CredentialType {
|
||||||
Email
|
Email
|
||||||
}
|
}
|
||||||
impl CredentialType {
|
impl CredentialType {
|
||||||
pub fn get_max_length(&self) -> i32 {
|
pub fn get_max_length(&self) -> usize {
|
||||||
match self {
|
match self {
|
||||||
CredentialType::PhoneNumber => 10,
|
CredentialType::PhoneNumber => 10,
|
||||||
CredentialType::Email => 255,
|
CredentialType::Email => 255,
|
||||||
|
|
Loading…
Reference in New Issue