[router][lint] Add unused_qualifications to cargo lint warnings (#11366)
This commit is contained in:
@@ -96,7 +96,7 @@ async fn test_openai_router_creation() {
|
||||
None,
|
||||
Arc::new(MemoryResponseStorage::new()),
|
||||
Arc::new(MemoryConversationStorage::new()),
|
||||
Arc::new(sglang_router_rs::data_connector::MemoryConversationItemStorage::new()),
|
||||
Arc::new(MemoryConversationItemStorage::new()),
|
||||
)
|
||||
.await;
|
||||
|
||||
@@ -146,7 +146,7 @@ async fn test_openai_router_models() {
|
||||
None,
|
||||
Arc::new(MemoryResponseStorage::new()),
|
||||
Arc::new(MemoryConversationStorage::new()),
|
||||
Arc::new(sglang_router_rs::data_connector::MemoryConversationItemStorage::new()),
|
||||
Arc::new(MemoryConversationItemStorage::new()),
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
@@ -226,7 +226,7 @@ async fn test_openai_router_responses_with_mock() {
|
||||
None,
|
||||
storage.clone(),
|
||||
Arc::new(MemoryConversationStorage::new()),
|
||||
Arc::new(sglang_router_rs::data_connector::MemoryConversationItemStorage::new()),
|
||||
Arc::new(MemoryConversationItemStorage::new()),
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
@@ -487,7 +487,7 @@ async fn test_openai_router_responses_streaming_with_mock() {
|
||||
None,
|
||||
storage.clone(),
|
||||
Arc::new(MemoryConversationStorage::new()),
|
||||
Arc::new(sglang_router_rs::data_connector::MemoryConversationItemStorage::new()),
|
||||
Arc::new(MemoryConversationItemStorage::new()),
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
@@ -592,7 +592,7 @@ async fn test_unsupported_endpoints() {
|
||||
None,
|
||||
Arc::new(MemoryResponseStorage::new()),
|
||||
Arc::new(MemoryConversationStorage::new()),
|
||||
Arc::new(sglang_router_rs::data_connector::MemoryConversationItemStorage::new()),
|
||||
Arc::new(MemoryConversationItemStorage::new()),
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
@@ -634,7 +634,7 @@ async fn test_openai_router_chat_completion_with_mock() {
|
||||
None,
|
||||
Arc::new(MemoryResponseStorage::new()),
|
||||
Arc::new(MemoryConversationStorage::new()),
|
||||
Arc::new(sglang_router_rs::data_connector::MemoryConversationItemStorage::new()),
|
||||
Arc::new(MemoryConversationItemStorage::new()),
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
@@ -677,7 +677,7 @@ async fn test_openai_e2e_with_server() {
|
||||
None,
|
||||
Arc::new(MemoryResponseStorage::new()),
|
||||
Arc::new(MemoryConversationStorage::new()),
|
||||
Arc::new(sglang_router_rs::data_connector::MemoryConversationItemStorage::new()),
|
||||
Arc::new(MemoryConversationItemStorage::new()),
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
@@ -748,7 +748,7 @@ async fn test_openai_router_chat_streaming_with_mock() {
|
||||
None,
|
||||
Arc::new(MemoryResponseStorage::new()),
|
||||
Arc::new(MemoryConversationStorage::new()),
|
||||
Arc::new(sglang_router_rs::data_connector::MemoryConversationItemStorage::new()),
|
||||
Arc::new(MemoryConversationItemStorage::new()),
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
@@ -802,7 +802,7 @@ async fn test_openai_router_circuit_breaker() {
|
||||
Some(cb_config),
|
||||
Arc::new(MemoryResponseStorage::new()),
|
||||
Arc::new(MemoryConversationStorage::new()),
|
||||
Arc::new(sglang_router_rs::data_connector::MemoryConversationItemStorage::new()),
|
||||
Arc::new(MemoryConversationItemStorage::new()),
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
@@ -831,7 +831,7 @@ async fn test_openai_router_models_auth_forwarding() {
|
||||
None,
|
||||
Arc::new(MemoryResponseStorage::new()),
|
||||
Arc::new(MemoryConversationStorage::new()),
|
||||
Arc::new(sglang_router_rs::data_connector::MemoryConversationItemStorage::new()),
|
||||
Arc::new(MemoryConversationItemStorage::new()),
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user