refactor: 简化 outcome clippy lint 并移动 usage 测试模块至文件末尾

This commit is contained in:
fawney19
2026-04-11 09:35:31 +08:00
parent 848f99d3e5
commit ec0bde819a
2 changed files with 75 additions and 75 deletions

View File

@@ -149,7 +149,7 @@ pub(crate) async fn record_failed_usage_for_exhausted_request(
Value::String("application/json".to_string()),
)]);
if let Some(reason) = diagnostic
.and_then(|value| Some(value.reason.trim()))
.map(|value| value.reason.trim())
.filter(|value| !value.is_empty())
{
client_headers.insert(