mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
chore: clippy run
This commit is contained in:
parent
6efa298cba
commit
e2ec5f09eb
1 changed files with 1 additions and 1 deletions
|
@ -1358,7 +1358,7 @@ impl<'a, 'b> Parser<'a, 'b> where 'a: 'b {
|
|||
|
||||
fn write_version<W: Write>(&self, w: &mut W) -> io::Result<()> {
|
||||
if let Some(bn) = self.meta.bin_name.as_ref() {
|
||||
if bn.contains(" ") {
|
||||
if bn.contains(' ') {
|
||||
// Incase we're dealing with subcommands i.e. git mv is translated to git-mv
|
||||
writeln!(w, "{} {}", bn.replace(" ", "-"), self.meta.version.unwrap_or("".into()))
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue