summaryrefslogtreecommitdiffstats
path: root/src/commands/source.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-04 10:49:10 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-07 13:21:54 +0100
commit4f98ff58912e344c6eee89827510ff0c6fb9fc4e (patch)
treee64027de3751e604daef13dd08c3a1af82a1fc07 /src/commands/source.rs
parenta1432f552a92700a6a07ce010afb35f852f52522 (diff)
Remove unused variable
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/commands/source.rs')
-rw-r--r--src/commands/source.rs4
1 files changed, 2 insertions, 2 deletions
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();