Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Nowak-Liebiediew committed Jul 3, 2023
1 parent 791aacd commit 8a666fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dfx/src/lib/extension/manifest/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,12 @@ impl ExtensionManifest {
}

pub fn into_clap_commands(self) -> Result<Vec<clap::Command>, ExtensionError> {
Ok(self
.subcommands
self.subcommands
.unwrap_or_default()
.0
.into_iter()
.map(|(subcmd, opts)| opts.into_clap_command(subcmd))
.collect::<Result<Vec<_>, _>>()?)
.collect::<Result<Vec<_>, _>>()
}
}

Expand Down

0 comments on commit 8a666fb

Please sign in to comment.