Skip to content

Commit

Permalink
Use try!() instead of ? operator, for older compilers (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasbeyer authored and kbknapp committed Nov 16, 2016
1 parent 4181a98 commit 192a808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 192a808

Please sign in to comment.