Fix clippy errors (#2973)

This commit is contained in:
Hocuri
2022-01-14 17:34:19 +01:00
committed by GitHub
parent c9a70f149d
commit 1e9e308df3
2 changed files with 2 additions and 3 deletions

View File

@@ -1328,8 +1328,7 @@ async fn build_body_file(
"video_{}.{}", "video_{}.{}",
chrono::Utc chrono::Utc
.timestamp(msg.timestamp_sort, 0) .timestamp(msg.timestamp_sort, 0)
.format("%Y-%m-%d_%H-%M-%S") .format("%Y-%m-%d_%H-%M-%S"),
.to_string(),
&suffix &suffix
), ),
_ => blob.as_file_name().to_string(), _ => blob.as_file_name().to_string(),

View File

@@ -41,7 +41,7 @@ impl Smtp {
} }
} }
for recipients_chunk in recipients.chunks(chunk_size).into_iter() { for recipients_chunk in recipients.chunks(chunk_size) {
let recipients_display = recipients_chunk let recipients_display = recipients_chunk
.iter() .iter()
.map(|x| x.as_ref()) .map(|x| x.as_ref())