Skip to content

Commit

Permalink
take 20
Browse files Browse the repository at this point in the history
  • Loading branch information
Feel-ix-343 committed Jun 13, 2024
1 parent 9db3944 commit aec26e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/completions/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ fn to_completion_response(
named_entities: impl IndexedParallelIterator<Item = NamedEntity>,
) -> CompletionResponse {
let items = named_entities
.take(20)
.enumerate()
.flat_map(|(i, entity)| {
let label = entity_to_label(&entity);
Expand Down

0 comments on commit aec26e9

Please sign in to comment.