Skip to content

Commit

Permalink
Merge pull request containers#515 from cgwalters/run-from-iter-unmono
Browse files Browse the repository at this point in the history
lib: Dispatch to monomorphic function
  • Loading branch information
jmarrero authored Aug 17, 2023
2 parents 79d2b9b + 9e37e76 commit 332ad0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,10 @@ where
I: IntoIterator,
I::Item: Into<OsString> + Clone,
{
let opt = Opt::parse_from(args);
run_from_opt(Opt::parse_from(args)).await
}

async fn run_from_opt(opt: Opt) -> Result<()> {
match opt {
Opt::Tar(TarOpts::Import(ref opt)) => tar_import(opt).await,
Opt::Tar(TarOpts::Export(ref opt)) => tar_export(opt),
Expand Down

0 comments on commit 332ad0d

Please sign in to comment.