Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed May 31, 2024
1 parent 13f03a1 commit 5103e00
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion crates/tabby/src/services/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ mod tests {
temperature: None,
seed: None,
presence_penalty: None,
user: None,
};
let mut output = service.generate(request).await;
let response = output.next().await.unwrap();
Expand Down
6 changes: 1 addition & 5 deletions crates/tabby/src/services/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,8 @@ mod tests {
&self,
_query: CodeSearchQuery,
_limit: usize,
_offset: usize,
) -> Result<CodeSearchResponse, CodeSearchError> {
Ok(CodeSearchResponse {
num_hits: 0,
hits: vec![],
})
Ok(CodeSearchResponse { hits: vec![] })
}

Check warning on line 397 in crates/tabby/src/services/completion.rs

View check run for this annotation

Codecov / codecov/patch

crates/tabby/src/services/completion.rs#L395-L397

Added lines #L395 - L397 were not covered by tests
}

Expand Down

0 comments on commit 5103e00

Please sign in to comment.