mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
Use try!() instead of ? operator, for older compilers (#752)
This commit is contained in:
parent
4181a98131
commit
192a808e0f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue