fix(ci): resolve formatting, clippy and migration alias checks

This commit is contained in:
elky
2026-09-08 12:41:19 +08:00
parent c7e403b410
commit 5fefd6ca28
3 changed files with 5 additions and 4 deletions
@@ -106,7 +106,7 @@ fn forwarded_proto(headers: &HeaderMap) -> Option<&'static str> {
let value = headers let value = headers
.get_all("x-forwarded-proto") .get_all("x-forwarded-proto")
.iter() .iter()
.last()? .next_back()?
.to_str() .to_str()
.ok()? .ok()?
.rsplit(',') .rsplit(',')
@@ -5010,6 +5010,7 @@ fn retired_api_format_occurrences_are_whitelisted() {
"crates/aether-ai/formats/src/formats/registry.rs", "crates/aether-ai/formats/src/formats/registry.rs",
"crates/aether-data/runtime/src/migrate.rs", "crates/aether-data/runtime/src/migrate.rs",
"crates/aether-data/runtime/src/lifecycle/migrate/tests.rs", "crates/aether-data/runtime/src/lifecycle/migrate/tests.rs",
"crates/aether-data/runtime/src/lifecycle/migrate/tests/policy_nulls.rs",
"crates/aether-usage/runtime/src/report.rs", "crates/aether-usage/runtime/src/report.rs",
"frontend/src/api/endpoints/types/__tests__/api-format.spec.ts", "frontend/src/api/endpoints/types/__tests__/api-format.spec.ts",
"frontend/src/views/admin/module-management/modelDirectivesConfig.ts", "frontend/src/views/admin/module-management/modelDirectivesConfig.ts",
@@ -20,9 +20,9 @@ use http::StatusCode;
use serde_json::json; use serde_json::json;
use super::super::super::{ use super::super::super::{
build_router_with_state, build_state_with_execution_runtime_override, sample_admin_global_model, build_router_with_state, build_state_with_execution_runtime_override,
sample_bound_auth_config, sample_bound_key, sample_endpoint, sample_key, sample_proxy_node, sample_admin_global_model, sample_bound_auth_config, sample_bound_key, sample_endpoint,
start_server, AppState, sample_key, sample_proxy_node, start_server, AppState,
}; };
use crate::constants::{ use crate::constants::{
GATEWAY_HEADER, TRUSTED_ADMIN_SESSION_ID_HEADER, TRUSTED_ADMIN_USER_ID_HEADER, GATEWAY_HEADER, TRUSTED_ADMIN_SESSION_ID_HEADER, TRUSTED_ADMIN_USER_ID_HEADER,