From 38f8e3311e5faa26f394c47056224281da4444fb Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 5 Nov 2022 01:07:21 +0530 Subject: [PATCH] fix: resolve Clippy warnings --- src/cli.rs | 2 +- src/git.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 6391bef..d7c9cc3 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -36,6 +36,6 @@ mod test { #[test] fn cli_assert() { - ::command().debug_assert() + ::command().debug_assert(); } } diff --git a/src/git.rs b/src/git.rs index 4d56731..89aaf61 100644 --- a/src/git.rs +++ b/src/git.rs @@ -67,7 +67,7 @@ pub(crate) fn thaw_repos(dir: &str, lockfile: &str) -> anyhow::Result<()> { for (name, repo) in repos { println!("Cloning {} from {}", &name, &repo.remote_url); let output = Command::new("git") - .args(&[ + .args([ "clone", &repo.remote_url, PathBuf::from(&dir).join(&name).to_str().unwrap(), @@ -76,7 +76,7 @@ pub(crate) fn thaw_repos(dir: &str, lockfile: &str) -> anyhow::Result<()> { .expect("Failed to run `git clone`. Perhaps git is not installed?"); if output.status.success() { - println!("Thawed {} successfully.", name); + println!("Thawed {name} successfully."); } else { println!("{}", std::str::from_utf8(&output.stderr)?); }