Skip to content

Commit

Permalink
fix(multicall): More consistent whitespace in errors
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed May 2, 2022
1 parent f9fdb99 commit 8cd59fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/output/usage.rs
Expand Up @@ -154,7 +154,7 @@ impl<'help, 'cmd> Usage<'help, 'cmd> {
usage.push(']');
}
}
usage.shrink_to_fit();
let usage = usage.trim().to_owned();
debug!("Usage::create_help_usage: usage={}", usage);
usage
}
Expand Down
4 changes: 2 additions & 2 deletions tests/builder/subcommands.rs
Expand Up @@ -566,7 +566,7 @@ fn bad_multicall_command_error() {
error: The subcommand 'world' wasn't recognized
USAGE:
<SUBCOMMAND>
<SUBCOMMAND>
For more information try help
";
Expand All @@ -582,7 +582,7 @@ error: The subcommand 'baz' wasn't recognized
If you believe you received this message in error, try re-running with ' -- baz'
USAGE:
<SUBCOMMAND>
<SUBCOMMAND>
For more information try help
";
Expand Down

0 comments on commit 8cd59fa

Please sign in to comment.