|
@@ -96,20 +96,20 @@ impl fmt::Display for HelpString {
|
|
|
/// Format this help options into an actual string of help
|
|
/// Format this help options into an actual string of help
|
|
|
/// text to be displayed to the user.
|
|
/// text to be displayed to the user.
|
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
|
|
- try!(write!(f, "Usage:\n exa [options] [files...]\n"));
|
|
|
|
|
|
|
+ write!(f, "Usage:\n exa [options] [files...]\n")?;
|
|
|
|
|
|
|
|
if !self.only_long {
|
|
if !self.only_long {
|
|
|
- try!(write!(f, "{}", OPTIONS));
|
|
|
|
|
|
|
+ write!(f, "{}", OPTIONS)?;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- try!(write!(f, "{}", LONG_OPTIONS));
|
|
|
|
|
|
|
+ write!(f, "{}", LONG_OPTIONS)?;
|
|
|
|
|
|
|
|
if self.git {
|
|
if self.git {
|
|
|
- try!(write!(f, "\n{}", GIT_HELP));
|
|
|
|
|
|
|
+ write!(f, "\n{}", GIT_HELP)?;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if self.xattrs {
|
|
if self.xattrs {
|
|
|
- try!(write!(f, "\n{}", EXTENDED_HELP));
|
|
|
|
|
|
|
+ write!(f, "\n{}", EXTENDED_HELP)?;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Ok(())
|
|
Ok(())
|