From 192a808e0fea49adfe3487c43894a9be6112d346 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 16 Nov 2016 20:41:26 +0100 Subject: [PATCH] Use try!() instead of ? operator, for older compilers (#752) --- src/app/help.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/help.rs b/src/app/help.rs index 3270f0ccfae..83a6dfce263 100644 --- a/src/app/help.rs +++ b/src/app/help.rs @@ -167,7 +167,7 @@ impl<'a> Help<'a> { pub fn write_help(&mut self, parser: &Parser) -> ClapResult<()> { debugln!("fn=Help::write_help;"); if let Some(h) = parser.meta.help_str { - write!(self.writer, "{}", h).map_err(Error::from)?; + try!(write!(self.writer, "{}", h).map_err(Error::from)); } else if let Some(tmpl) = parser.meta.template { try!(self.write_templated_help(&parser, tmpl)); } else {