From 30587b2f9757dd833f608e3a3876c86402a61262 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Mon, 27 Nov 2023 20:19:50 +0100 Subject: [PATCH] feat: with impl into Signed-off-by: kjuulh --- crates/cuddle-ci/src/cli.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/cuddle-ci/src/cli.rs b/crates/cuddle-ci/src/cli.rs index 8e86036..138dd56 100644 --- a/crates/cuddle-ci/src/cli.rs +++ b/crates/cuddle-ci/src/cli.rs @@ -46,14 +46,17 @@ impl CuddleCI { self } - pub async fn execute(&mut self, args: impl IntoIterator) -> eyre::Result<()> { + pub async fn execute( + &mut self, + args: impl IntoIterator>, + ) -> eyre::Result<()> { let matches = clap::Command::new("cuddle-ci") .about("is a wrapper around common CI actions") .subcommand(clap::Command::new("pr")) .subcommand(clap::Command::new("main")) .subcommand(clap::Command::new("release")) .subcommand_required(true) - .try_get_matches_from(args.into_iter())?; + .try_get_matches_from(args.into_iter().map(|a| a.into()).collect::>())?; match matches.subcommand() { Some((name, args)) => match (name, args) {