mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-01 17:00:21 +08:00
refactor: 简化 outcome clippy lint 并移动 usage 测试模块至文件末尾
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user