Skip to content

Commit

Permalink
feat: remove useless clone
Browse files Browse the repository at this point in the history
  • Loading branch information
fastfailures committed Jan 29, 2025
1 parent 8f2105f commit 92767de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,7 @@ impl TerritoryCode {
Ok(if get_phone_leading_digits(1) == 1 {
let first_four = get_phone_leading_digits(4);
match lookup_table(first_four) {
Some(found) => found.clone(),
Some(found) => found,
None => return Err(FromPhoneError::NotFound),
}
} else {
Expand All @@ -1694,7 +1694,7 @@ impl TerritoryCode {
}
let leading_digits = get_phone_leading_digits(prefix_len);
if let Some(found) = lookup_table(leading_digits) {
break found.clone();
break found;
}
prefix_len -= 1;
}
Expand Down

0 comments on commit 92767de

Please sign in to comment.