diff --git a/codex-rs/core/src/chat_completions.rs b/codex-rs/core/src/chat_completions.rs index 8721498670..17f0c36eae 100644 --- a/codex-rs/core/src/chat_completions.rs +++ b/codex-rs/core/src/chat_completions.rs @@ -468,10 +468,12 @@ mod tests { #![allow(clippy::unwrap_used)] use super::*; - use crate::models::{ - FunctionCallOutputPayload, LocalShellAction, LocalShellExecAction, LocalShellStatus, - }; - use futures::{StreamExt, stream}; + use crate::models::FunctionCallOutputPayload; + use crate::models::LocalShellAction; + use crate::models::LocalShellExecAction; + use crate::models::LocalShellStatus; + use futures::StreamExt; + use futures::stream; /// Helper constructing a minimal assistant text chunk. fn text_chunk(txt: &str) -> ResponseEvent { @@ -565,10 +567,15 @@ mod tests { #[tokio::test] async fn formats_tool_calls_in_chat_payload() { use serde_json::Value; - use std::sync::{Arc, Mutex}; - use wiremock::{ - Mock, MockServer, Request, Respond, ResponseTemplate, matchers::method, matchers::path, - }; + use std::sync::Arc; + use std::sync::Mutex; + use wiremock::Mock; + use wiremock::MockServer; + use wiremock::Request; + use wiremock::Respond; + use wiremock::ResponseTemplate; + use wiremock::matchers::method; + use wiremock::matchers::path; struct CaptureResponder(Arc>>); impl Respond for CaptureResponder { diff --git a/codex-rs/core/src/client.rs b/codex-rs/core/src/client.rs index b24952e747..4eeaf23b63 100644 --- a/codex-rs/core/src/client.rs +++ b/codex-rs/core/src/client.rs @@ -397,7 +397,8 @@ mod tests { #![allow(clippy::unwrap_used)] use super::*; - use crate::models::{LocalShellAction, LocalShellStatus}; + use crate::models::LocalShellAction; + use crate::models::LocalShellStatus; use tokio_util::io::ReaderStream; /// Build a tiny SSE string with the provided events.