Converts all try! macros to ? syntax.

Fixes #46
This commit is contained in:
rep-nop
2017-02-25 22:12:33 -05:00
committed by Jakob Stoklund Olesen
parent cf5701b137
commit b23f1fb347
22 changed files with 270 additions and 270 deletions

View File

@@ -47,9 +47,9 @@ impl<'a> TestCommand<'a> {
impl<'a> Display for TestCommand<'a> {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
try!(write!(f, "{}", self.command));
write!(f, "{}", self.command)?;
for opt in &self.options {
try!(write!(f, " {}", opt));
write!(f, " {}", opt)?;
}
writeln!(f, "")
}