Skip to content

Commit b75ae77

Browse files
committed
ci clippy
1 parent 880c527 commit b75ae77

File tree

2 files changed

+4
-8
lines changed
  • golem-embed

2 files changed

+4
-8
lines changed

golem-embed/embed-hugging-face/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ impl Guest for HuggingFaceComponent {
3939
})
4040
}
4141

42-
fn rerank(
43-
query: String,
44-
documents: Vec<String>,
45-
config: Config,
46-
) -> Result<RerankResponse, Error> {
42+
fn rerank(_: String, _: Vec<String>, _: Config) -> Result<RerankResponse, Error> {
4743
Err(Error {
4844
code: ErrorCode::Unsupported,
4945
message: "Hugging Face inference does not support rerank".to_string(),

golem-embed/embed-openai/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ impl Guest for OpenAIComponent {
4343
}
4444

4545
fn rerank(
46-
query: String,
47-
documents: Vec<String>,
48-
config: Config,
46+
_: String,
47+
_: Vec<String>,
48+
_: Config,
4949
) -> Result<RerankResponse, Error> {
5050
Err(Error {
5151
code: ErrorCode::Unsupported,

0 commit comments

Comments
 (0)