Fixed compiling issue

This commit is contained in:
641i130 2022-10-31 18:27:29 -05:00
parent 67ab1c8367
commit 5327d75e8f

View file

@ -41,7 +41,7 @@ fn plaintext() -> imap::error::Result<Option<String>> {
// extract the message's body // extract the message's body
let body = message let body = message
.body() .body()
.map(|body| String::from_utf8(body).expect("message was not valid utf-8")) .map(|body| String::from_utf8(body.to_vec()).expect("message was not valid utf-8"))
.unwrap_or_else(String::new); .unwrap_or_else(String::new);
// be nice to the server and log out // be nice to the server and log out