diff options
Diffstat (limited to 'crates/ra_ide_db')
-rw-r--r-- | crates/ra_ide_db/src/symbol_index.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_db/src/symbol_index.rs b/crates/ra_ide_db/src/symbol_index.rs index c974891ea..ac0a201df 100644 --- a/crates/ra_ide_db/src/symbol_index.rs +++ b/crates/ra_ide_db/src/symbol_index.rs | |||
@@ -337,10 +337,10 @@ impl Query { | |||
337 | continue; | 337 | continue; |
338 | } | 338 | } |
339 | 339 | ||
340 | res.push(symbol.clone()); | ||
340 | if res.len() >= self.limit { | 341 | if res.len() >= self.limit { |
341 | return res; | 342 | return res; |
342 | } | 343 | } |
343 | res.push(symbol.clone()); | ||
344 | } | 344 | } |
345 | } | 345 | } |
346 | } | 346 | } |