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