Skip to content

Commit

Permalink
chore: rustfmt run
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Feb 21, 2017
1 parent a01812f commit 10ca4d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,8 @@ impl<'a, 'b> Parser<'a, 'b>
if let Some(fv) = val {
has_eq = fv.starts_with(&[b'=']) || had_eq;
let v = fv.trim_left_matches(b'=');
if !opt.is_set(ArgSettings::EmptyValues) && (v.len_() == 0 || (opt.is_set(ArgSettings::RequireEquals) && !has_eq)) {
if !opt.is_set(ArgSettings::EmptyValues) &&
(v.len_() == 0 || (opt.is_set(ArgSettings::RequireEquals) && !has_eq)) {
sdebugln!("Found Empty - Error");
return Err(Error::empty_value(opt,
&*self.create_current_usage(matcher, None),
Expand Down Expand Up @@ -1556,7 +1557,7 @@ impl<'a, 'b> Parser<'a, 'b>
{
debugln!("Parser::add_val_to_arg; arg={}, val={:?}", arg.name(), val);
let mut ret = None;
debugln!("Parser::add_val_to_arg; trailing_vals={:?}, DontDelimTrailingVals={:?}",
debugln!("Parser::add_val_to_arg; trailing_vals={:?}, DontDelimTrailingVals={:?}",
self.trailing_vals, self.is_set(AppSettings::DontDelimitTrailingValues));
if !(self.trailing_vals && self.is_set(AppSettings::DontDelimitTrailingValues)) {
if let Some(delim) = arg.val_delim() {
Expand Down

0 comments on commit 10ca4d1

Please sign in to comment.