Replace uses of try!() macro with "?" operator

This commit is contained in:
Matthias Beyer 2017-10-30 20:19:29 +01:00
parent e758a28c9e
commit a44d79093c

View file

@ -51,7 +51,7 @@ impl Hasher for MailHasher {
use email::Header;
let mut s = String::new();
try!(c.read_to_string(&mut s));
c.read_to_string(&mut s)?;
MimeMessage::parse(&s)
.chain_err(|| REK::RefHashingError)
@ -66,9 +66,9 @@ impl Hasher for MailHasher {
let mut v : Vec<String> = vec![];
for hdr in mail.headers.iter().filter(|item| filter.filter(item)) {
let s = try!(hdr
let s = hdr
.get_value()
.chain_err(|| REK::RefHashingError));
.chain_err(|| REK::RefHashingError)?;
v.push(s);
}