Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Apr 27, 2022
1 parent f158648 commit fdec111
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gitoxide-core/src/organize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ where
progress.fail(format!(
"Error when handling directory {:?}: {}",
path_to_move.display(),
err.to_string()
err
));
num_errors += 1;
}
Expand Down
4 changes: 2 additions & 2 deletions src/plumbing/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/porcelain/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
)
},
Expand All @@ -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,
)
},
)
Expand Down

0 comments on commit fdec111

Please sign in to comment.