mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-07 03:00:29 +00:00
fix(server): clear clippy warnings in server tests
Return `&'static str` from the mock provider's `name()` and drop redundant `.to_string()` calls on `github.base_url()` (already owned). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7536e64292
commit
c3ba84d8cc
1 changed files with 4 additions and 7 deletions
|
|
@ -8726,7 +8726,7 @@ strategy = "token"
|
|||
|
||||
#[async_trait::async_trait]
|
||||
impl ProviderAdapter for MockLlmProvider {
|
||||
fn name(&self) -> &str {
|
||||
fn name(&self) -> &'static str {
|
||||
"anthropic"
|
||||
}
|
||||
|
||||
|
|
@ -9457,8 +9457,7 @@ slug = "fabro"
|
|||
.to_string(),
|
||||
);
|
||||
});
|
||||
let state =
|
||||
create_github_token_app_state(Some("ghu_test"), Some(github.base_url().to_string()));
|
||||
let state = create_github_token_app_state(Some("ghu_test"), Some(github.base_url()));
|
||||
let app = build_router(Arc::clone(&state), AuthMode::Disabled);
|
||||
let run_id = fixtures::RUN_1;
|
||||
|
||||
|
|
@ -9584,8 +9583,7 @@ slug = "fabro"
|
|||
.header("content-type", "application/json")
|
||||
.body(json!({ "message": "Not Found" }).to_string());
|
||||
});
|
||||
let state =
|
||||
create_github_token_app_state(Some("ghu_test"), Some(github.base_url().to_string()));
|
||||
let state = create_github_token_app_state(Some("ghu_test"), Some(github.base_url()));
|
||||
let app = build_router(Arc::clone(&state), AuthMode::Disabled);
|
||||
let run_id = fixtures::RUN_1;
|
||||
|
||||
|
|
@ -9642,8 +9640,7 @@ slug = "fabro"
|
|||
.to_string(),
|
||||
);
|
||||
});
|
||||
let state =
|
||||
create_github_token_app_state(Some("ghu_test"), Some(github.base_url().to_string()));
|
||||
let state = create_github_token_app_state(Some("ghu_test"), Some(github.base_url()));
|
||||
let app = build_router(Arc::clone(&state), AuthMode::Disabled);
|
||||
let run_id = fixtures::RUN_1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue