diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-08-12 16:45:43 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-08-12 17:00:20 +0200 |
commit | 80825bb43c7a4f188aa060b04513168978c1db0b (patch) | |
tree | 423662d6eedbb195c732643e99f6d5b8a2f6b5c4 /src/main.rs | |
parent | fdd75f7ae660441db47733bac200cea4a99ba4fe (diff) |
Fix clippy: Remove needless borrows
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 38460a6..18dee07 100644 --- a/src/main.rs +++ b/src/main.rs @@ -143,7 +143,7 @@ async fn main() -> Result<()> { let load_repo = || -> Result<Repository> { let bar = progressbars.bar(); - let repo = Repository::load(&repo_path, &bar) + let repo = Repository::load(repo_path, &bar) .context("Loading the repository")?; bar.finish_with_message("Repository loading finished"); Ok(repo) @@ -159,13 +159,13 @@ async fn main() -> Result<()> { let repo = load_repo()?; crate::commands::build( - &repo_path, + repo_path, matches, progressbars, conn, &config, repo, - &repo_path, + repo_path, ) .await .context("build command failed")? @@ -228,7 +228,7 @@ async fn main() -> Result<()> { Some(("lint", matches)) => { let repo = load_repo()?; - crate::commands::lint(&repo_path, matches, progressbars, &config, repo) + crate::commands::lint(repo_path, matches, progressbars, &config, repo) .await .context("lint command failed")? } @@ -243,7 +243,7 @@ async fn main() -> Result<()> { Some(("metrics", _)) => { let repo = load_repo()?; let conn = db_connection_config.establish_connection(&progressbars)?; - crate::commands::metrics(&repo_path, &config, repo, conn) + crate::commands::metrics(repo_path, &config, repo, conn) .await .context("metrics command failed")? } |