Changed i32 to usize for better conversion

This commit is contained in:
Franklin 2022-08-26 13:53:29 -04:00
parent 684024b555
commit 3d363e81ac
1 changed files with 1 additions and 1 deletions

View File

@ -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,