Skip to content

Commit

Permalink
style: fix add semi colons to push statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonribble committed Jul 12, 2024
1 parent 30219c4 commit 6bedc51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/contact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl Builder {

pub fn email(mut self, email: &str) -> Self {
if utils::is_not_valid_email(email) {
self.errors.push(AppError::InvalidEmail(email.to_string()))
self.errors.push(AppError::InvalidEmail(email.to_string()));
}
self.update.email = Some(email.to_string());
self
Expand All @@ -80,7 +80,7 @@ impl Builder {
pub fn phone_number(mut self, phone_number: &str) -> Self {
if utils::is_not_valid_phone_number(phone_number) {
self.errors
.push(AppError::InvalidPhoneNumber(phone_number.to_string()))
.push(AppError::InvalidPhoneNumber(phone_number.to_string()));
}
self.update.phone_number = Some(phone_number.to_string());
self
Expand Down

0 comments on commit 6bedc51

Please sign in to comment.