From fdec11135692b3503087b0a3245c12cc87554d67 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 27 Apr 2022 13:27:01 +0800 Subject: [PATCH] thanks clippy --- gitoxide-core/src/organize.rs | 2 +- src/plumbing/main.rs | 4 ++-- src/porcelain/main.rs | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gitoxide-core/src/organize.rs b/gitoxide-core/src/organize.rs index 17f312212a4..8f63f94246f 100644 --- a/gitoxide-core/src/organize.rs +++ b/gitoxide-core/src/organize.rs @@ -257,7 +257,7 @@ where progress.fail(format!( "Error when handling directory {:?}: {}", path_to_move.display(), - err.to_string() + err )); num_errors += 1; } diff --git a/src/plumbing/main.rs b/src/plumbing/main.rs index f8b391a56b4..9cee8c4762c 100644 --- a/src/plumbing/main.rs +++ b/src/plumbing/main.rs @@ -379,7 +379,7 @@ pub fn main() -> Result<()> { directory, refs_directory, refs.into_iter().map(|r| r.into()).collect(), - git_features::progress::DoOrDiscard::from(progress), + progress, core::pack::receive::Context { thread_limit, format, @@ -568,7 +568,7 @@ pub fn main() -> Result<()> { core::remote::refs::list( protocol, &url, - git_features::progress::DoOrDiscard::from(progress), + progress, core::remote::refs::Context { thread_limit, format, diff --git a/src/porcelain/main.rs b/src/porcelain/main.rs index 98b668620c8..af1c7d8b9a5 100644 --- a/src/porcelain/main.rs +++ b/src/porcelain/main.rs @@ -53,7 +53,7 @@ pub fn main() -> Result<()> { hours::estimate( &working_dir, &refname, - git_features::progress::DoOrDiscard::from(progress), + progress, hours::Context { show_pii, omit_unify_identities, @@ -75,7 +75,7 @@ pub fn main() -> Result<()> { organize::discover( root.unwrap_or_else(|| [std::path::Component::CurDir].iter().collect()), out, - git_features::progress::DoOrDiscard::from(progress), + progress, debug, ) }, @@ -102,7 +102,7 @@ pub fn main() -> Result<()> { }, repository_source.unwrap_or_else(|| [std::path::Component::CurDir].iter().collect()), destination_directory.unwrap_or_else(|| [std::path::Component::CurDir].iter().collect()), - git_features::progress::DoOrDiscard::from(progress), + progress, ) }, )