diff --git a/src/command/handlers/session.rs b/src/command/handlers/session.rs index f8c7cc7..9a32d47 100644 --- a/src/command/handlers/session.rs +++ b/src/command/handlers/session.rs @@ -17,7 +17,7 @@ impl SessionCommandHandler { /// /// # Arguments /// * `cli_sessions` - CLI 会话服务 - pub fn new(cli_sessions: CliSessionService) -> Self { + pub(crate) fn new(cli_sessions: CliSessionService) -> Self { Self { cli_sessions } } } diff --git a/src/gateway/ws.rs b/src/gateway/ws.rs index a886ceb..8faeb70 100644 --- a/src/gateway/ws.rs +++ b/src/gateway/ws.rs @@ -224,7 +224,7 @@ async fn handle_inbound( // 处理响应 for msg in outbounds { - if let WsOutbound::SessionCreated { session_id, title } = &msg { + if let WsOutbound::SessionCreated { session_id, title: _ } = &msg { *current_session_id = session_id.clone(); state .channel_manager