fix(proxy): 修复 Clippy dead_code 与 too_many_arguments 警告

This commit is contained in:
fawney19
2026-04-12 16:19:23 +08:00
parent e029012f73
commit f84febbf89
3 changed files with 6 additions and 0 deletions

View File

@@ -362,6 +362,7 @@ fn resolve_redirect<B>(
}
}
#[allow(clippy::too_many_arguments)]
async fn execute_upstream_request(
state: &AppState,
server: &ServerContext,
@@ -455,6 +456,7 @@ async fn execute_upstream_request(
})
}
#[allow(clippy::too_many_arguments)]
async fn relay_upstream_response(
server: &ServerContext,
stream_id: u32,
@@ -577,6 +579,7 @@ async fn relay_upstream_response(
Some(total_elapsed)
}
#[cfg(test)]
fn upstream_client_for_request<'a>(
state: &'a AppState,
meta: &RequestMeta,