##// END OF EJS Templates
rust: use .rev() for reverse range...
Yuya Nishihara -
r41137:247f51cf default
parent child Browse files
Show More
@@ -321,7 +321,7 b' impl<G: Graph> MissingAncestors<G> {'
321
321
322 // TODO heuristics for with_capacity()?
322 // TODO heuristics for with_capacity()?
323 let mut missing: Vec<Revision> = Vec::new();
323 let mut missing: Vec<Revision> = Vec::new();
324 for curr in (0..=start).map(|i| start - i) {
324 for curr in (0..=start).rev() {
325 if revs_visit.is_empty() {
325 if revs_visit.is_empty() {
326 break;
326 break;
327 }
327 }
General Comments 0
You need to be logged in to leave comments. Login now