Skip to content

Commit

Permalink
Fix cargo clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wshino committed Oct 30, 2024
1 parent 52d584d commit bd22f04
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions packages/relayer/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub async fn handle_email(email: String) -> Result<EmailAuthEvent, EmailError> {
error: format!("Request {} not found", request_id),
original_subject,
original_message_id: parsed_email.get_message_id().ok(),
email_request_context: None,
email_request_context: *Box::new(None),
command: None,
});
}
Expand Down Expand Up @@ -144,7 +144,7 @@ async fn handle_email_request(
error: "Account code found and for recovery".to_string(),
original_subject,
original_message_id: params.parsed_email.get_message_id().ok(),
email_request_context: None,
email_request_context: *Box::new(None),
command: None,
})
}
Expand All @@ -155,7 +155,7 @@ async fn handle_email_request(
error: "No account code found and not for recovery".to_string(),
original_subject,
original_message_id: params.parsed_email.get_message_id().ok(),
email_request_context: None,
email_request_context: *Box::new(None),
command: None,
})
}
Expand Down Expand Up @@ -224,7 +224,7 @@ async fn accept(
error: "Failed to handle acceptance".to_string(),
original_subject,
original_message_id: params.parsed_email.get_message_id().ok(),
email_request_context: Some(params),
email_request_context: Some(Box::new(params)),
command: Some(email_auth_msg_clone.proof.masked_command),
})
}
Expand Down Expand Up @@ -280,7 +280,7 @@ async fn recover(params: EmailRequestContext) -> Result<EmailAuthEvent, EmailErr
error: "Failed to handle recovery".to_string(),
original_subject,
original_message_id: params.parsed_email.get_message_id().ok(),
email_request_context: Some(params),
email_request_context: Some(Box::new(params)),
command: Some(email_auth_msg_clone.proof.masked_command),
})
}
Expand Down
2 changes: 1 addition & 1 deletion packages/relayer/src/modules/mail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub enum EmailAuthEvent {
error: String,
original_subject: String,
original_message_id: Option<String>,
email_request_context: Option<EmailRequestContext>,
email_request_context: Option<Box<EmailRequestContext>>,
command: Option<String>,
},
RecoveryRequest {
Expand Down
2 changes: 1 addition & 1 deletion packages/relayer/src/modules/web_server/rest_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ pub async fn receive_email_api_fn(email: String) -> Result<(), ApiError> {
error: e.to_string(),
original_subject,
original_message_id: parsed_email.get_message_id().ok(),
email_request_context: None,
email_request_context: *Box::new(None),
command: None,
})
.await
Expand Down

0 comments on commit bd22f04

Please sign in to comment.