Skip to content

Commit 0c07056

Browse files
committed
cargo fmt
1 parent 6aad5ec commit 0c07056

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/cargo/core/registry.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,9 @@ impl<'cfg> Registry for PackageRegistry<'cfg> {
678678
// the summaries it gives us though.
679679
(Some(override_summary), Some(source)) => {
680680
if !patches.is_empty() {
681-
return Poll::Ready(Err(anyhow::anyhow!("found patches and a path override")))
681+
return Poll::Ready(Err(anyhow::anyhow!(
682+
"found patches and a path override"
683+
)));
682684
}
683685
let mut n = 0;
684686
let mut to_warn = None;
@@ -703,7 +705,9 @@ impl<'cfg> Registry for PackageRegistry<'cfg> {
703705
};
704706

705707
if n > 1 {
706-
return Poll::Ready(Err(anyhow::anyhow!("found an override with a non-locked list")))
708+
return Poll::Ready(Err(anyhow::anyhow!(
709+
"found an override with a non-locked list"
710+
)));
707711
} else if let Some(summary) = to_warn {
708712
self.warn_bad_override(&override_summary, &summary)?;
709713
}
@@ -874,7 +878,7 @@ fn summary_for_patch(
874878
orig_patch.source_id(),
875879
versions.join(", "),
876880
versions.last().unwrap()
877-
)))
881+
)));
878882
}
879883
assert!(summaries.is_empty());
880884
// No summaries found, try to help the user figure out what is wrong.

0 commit comments

Comments
 (0)