From 4f98ff58912e344c6eee89827510ff0c6fb9fc4e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 4 Dec 2020 10:49:10 +0100 Subject: Remove unused variable Signed-off-by: Matthias Beyer --- src/commands/source.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands/source.rs') diff --git a/src/commands/source.rs b/src/commands/source.rs index ef5b5c8..e750b17 100644 --- a/src/commands/source.rs +++ b/src/commands/source.rs @@ -20,7 +20,7 @@ pub async fn source(matches: &ArgMatches, config: &Configuration, repo: Reposito match matches.subcommand() { Some(("verify", matches)) => verify(matches, config, repo).await, Some(("list-missing", matches)) => list_missing(matches, config, repo).await, - Some(("url", matches)) => url(matches, config, repo).await, + Some(("url", matches)) => url(matches, repo).await, Some(("download", matches)) => download(matches, config, repo, progressbars).await, Some((other, _)) => return Err(anyhow!("Unknown subcommand: {}", other)), None => return Err(anyhow!("No subcommand")), @@ -90,7 +90,7 @@ pub async fn list_missing(_: &ArgMatches, config: &Configuration, repo: Reposito .collect() } -pub async fn url(matches: &ArgMatches, config: &Configuration, repo: Repository) -> Result<()> { +pub async fn url(matches: &ArgMatches, repo: Repository) -> Result<()> { let out = std::io::stdout(); let mut outlock = out.lock(); -- cgit v1.2.3