Fixed compiling issue
This commit is contained in:
parent
67ab1c8367
commit
5327d75e8f
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ fn plaintext() -> imap::error::Result<Option<String>> {
|
|||
// extract the message's body
|
||||
let body = message
|
||||
.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);
|
||||
|
||||
// be nice to the server and log out
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue