refactor: unsafe, CStr and libc moved out

This commit is contained in:
dignifiedquire
2019-12-02 15:29:47 +01:00
parent 43074464ac
commit db88212a64
17 changed files with 398 additions and 459 deletions

View File

@@ -232,7 +232,7 @@ impl<'a> MimeParser<'a> {
}
}
if let Some(ref subject) = self.subject {
let mut prepend_subject: libc::c_int = 1i32;
let mut prepend_subject = 1i32;
if !self.decrypting_failed {
let colon = subject.find(':');
if colon == Some(2)