File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -806,18 +806,12 @@ fn summary_for_patch(
806806 // No summaries found, try to help the user figure out what is wrong.
807807 if let Some ( ( _locked_patch, locked_id) ) = locked {
808808 // 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- }
809+ let orig_matches = match source. query_vec ( orig_patch) {
810+ Ok ( Poll :: Ready ( deps) ) => Ok ( deps) ,
811+ Ok ( Poll :: Pending ) => {
812+ return Ok ( Poll :: Pending ) ;
820813 }
814+ Err ( x) => Err ( x) ,
821815 }
822816 . unwrap_or_else ( |e| {
823817 log:: warn!(
You can’t perform that action at this time.
0 commit comments