From 80825bb43c7a4f188aa060b04513168978c1db0b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 12 Aug 2021 16:45:43 +0200 Subject: Fix clippy: Remove needless borrows Signed-off-by: Matthias Beyer --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main.rs') 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 { 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")? } -- cgit v1.2.3