From daf40fde8219e6950beb61fa1c3f5c45ef778b1b Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sat, 28 Mar 2020 03:51:02 +0300 Subject: [PATCH] mimefactory: use .next() instead of .nth(0) --- src/mimefactory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mimefactory.rs b/src/mimefactory.rs index 58217face..127a23111 100644 --- a/src/mimefactory.rs +++ b/src/mimefactory.rs @@ -1095,7 +1095,7 @@ fn is_file_size_okay(context: &Context, msg: &Message) -> bool { fn render_rfc724_mid(rfc724_mid: &str) -> String { let rfc724_mid = rfc724_mid.trim().to_string(); - if rfc724_mid.chars().nth(0).unwrap_or_default() == '<' { + if rfc724_mid.chars().next().unwrap_or_default() == '<' { rfc724_mid } else { format!("<{}>", rfc724_mid)