Skip to content

Commit ed2817e

Browse files
author
Jonas Schievink
committed
Move limit check down
1 parent 56c7145 commit ed2817e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ra_ide_db/src/symbol_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ impl Query {
337337
continue;
338338
}
339339

340+
res.push(symbol.clone());
340341
if res.len() >= self.limit {
341342
return res;
342343
}
343-
res.push(symbol.clone());
344344
}
345345
}
346346
}

0 commit comments

Comments
 (0)