Skip to content

Commit

Permalink
Format code after Clippy rules applied
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Apr 1, 2021
1 parent e51e113 commit 2250e56
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/utils/vcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@ fn find_matching_revs(
};

let prev_rev = if let Some(rev) = spec.prev_reference() {
if let Some(rv) = find_matching_rev(rev, &spec, repos, disable_discovery, remote_name)?
{
if let Some(rv) = find_matching_rev(rev, &spec, repos, disable_discovery, remote_name)? {
Some(rv)
} else {
return Err(error(rev, &spec.repo));
Expand Down Expand Up @@ -428,13 +427,9 @@ pub fn find_heads(
rev: "HEAD".into(),
prev_rev: None,
};
if let Some(rev) = find_matching_rev(
spec.reference(),
&spec,
repos,
false,
remote_name.clone(),
)? {
if let Some(rev) =
find_matching_rev(spec.reference(), &spec, repos, false, remote_name.clone())?
{
rv.push(Ref {
repo: repo.name.to_string(),
rev,
Expand Down

0 comments on commit 2250e56

Please sign in to comment.