Use try!() instead of ? operator, for older compilers (#752)

This commit is contained in:
Matthias Beyer 2016-11-16 20:41:26 +01:00 committed by Kevin K
parent 4181a98131
commit 192a808e0f

View file

@ -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 {