fix weird rust rover suggestion
This commit is contained in:
parent
745a222505
commit
3410b173b2
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ fn get_emails(imap_session: &mut imap::Session<TcpStream>) -> Option<HashMap<u32
|
|||
return None;
|
||||
}
|
||||
|
||||
let messages = imap_session.fetch("1:".to_owned() + &*ordinals.iter().max().unwrap().to_string(), "(BODY[TEXT] ENVELOPE)")?;
|
||||
let messages = imap_session.fetch("1:".to_string() + &*ordinals.iter().max().unwrap().to_string(), "(BODY[TEXT] ENVELOPE)")?;
|
||||
let mut emails: HashMap<u32, Email> = HashMap::new();
|
||||
if messages.is_empty() {
|
||||
return None;
|
||||
|
|
|
|||
Loading…
Reference in a new issue