We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d9e675 commit 44012fdCopy full SHA for 44012fd
src/cargo/core/registry.rs
@@ -806,18 +806,12 @@ fn summary_for_patch(
806
// No summaries found, try to help the user figure out what is wrong.
807
if let Some((_locked_patch, locked_id)) = locked {
808
// Since the locked patch did not match anything, try the unlocked one.
809
- let orig_matches = loop {
810
- match source.query_vec(orig_patch) {
811
- Ok(Poll::Ready(deps)) => {
812
- break Ok(deps);
813
- }
814
- Ok(Poll::Pending) => {
815
- // TODO: dont hot loop for it to be Ready
816
817
- Err(x) => {
818
- break Err(x);
819
+ let orig_matches = match source.query_vec(orig_patch) {
+ Ok(Poll::Ready(deps)) => Ok(deps),
+ Ok(Poll::Pending) => {
+ return Ok(Poll::Pending);
820
}
+ Err(x) => Err(x),
821
822
.unwrap_or_else(|e| {
823
log::warn!(
0 commit comments