Просмотр исходного кода

search: Fix bug and report all matching ways

Johannes Hofmann 7 лет назад
Родитель
Сommit
d543ec8738
1 измененных файлов: 0 добавлений и 2 удалений
  1. 0
    2
      src/search.rs

+ 0
- 2
src/search.rs Просмотреть файл

@@ -119,7 +119,6 @@ where P: AsRef<Path>,
119 119
             if way_node_ids.contains(&node.id()) {
120 120
                 let pos = LatLon::new(node.lat(), node.lon());
121 121
                 matches.push(pos);
122
-                break;
123 122
             }
124 123
         }
125 124
 
@@ -127,7 +126,6 @@ where P: AsRef<Path>,
127 126
             if way_node_ids.contains(&node.id) {
128 127
                 let pos = LatLon::new(node.lat(), node.lon());
129 128
                 matches.push(pos);
130
-                break;
131 129
             }
132 130
         }
133 131