mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
Clippy
This commit is contained in:
@@ -333,14 +333,11 @@ impl Job {
|
|||||||
|
|
||||||
pub(crate) async fn send_msg_to_smtp(&mut self, context: &Context, smtp: &mut Smtp) -> Status {
|
pub(crate) async fn send_msg_to_smtp(&mut self, context: &Context, smtp: &mut Smtp) -> Status {
|
||||||
// Upload file to HTTP if set in params.
|
// Upload file to HTTP if set in params.
|
||||||
match (
|
if let (Some(upload_url), Ok(Some(upload_path))) = (
|
||||||
self.param.get_upload_url(),
|
self.param.get_upload_url(),
|
||||||
self.param.get_upload_path(context),
|
self.param.get_upload_path(context),
|
||||||
) {
|
) {
|
||||||
(Some(upload_url), Ok(Some(upload_path))) => {
|
job_try!(upload_file(context, upload_url.to_string(), upload_path).await);
|
||||||
job_try!(upload_file(context, upload_url.to_string(), upload_path).await);
|
|
||||||
}
|
|
||||||
_ => {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// SMTP server, if not yet done
|
// SMTP server, if not yet done
|
||||||
|
|||||||
Reference in New Issue
Block a user