Skip to content

Commit 2cfaf82

Browse files
committed
ci: Reformat aggressively
1 parent 4670777 commit 2cfaf82

12 files changed

Lines changed: 61 additions & 34 deletions

File tree

codex-rs/Cargo.lock

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codex-rs/acp/src/lib.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ pub use registry::get_agent_config;
1010
pub use tracing_setup::init_file_tracing;
1111

1212
// Re-export commonly used types from agent-client-protocol
13-
pub use agent_client_protocol::{
14-
Agent, Client, ClientSideConnection, InitializeRequest, InitializeResponse, NewSessionRequest,
15-
NewSessionResponse, PromptRequest, PromptResponse, SessionNotification, SessionUpdate,
16-
};
13+
pub use agent_client_protocol::Agent;
14+
pub use agent_client_protocol::Client;
15+
pub use agent_client_protocol::ClientSideConnection;
16+
pub use agent_client_protocol::InitializeRequest;
17+
pub use agent_client_protocol::InitializeResponse;
18+
pub use agent_client_protocol::NewSessionRequest;
19+
pub use agent_client_protocol::NewSessionResponse;
20+
pub use agent_client_protocol::PromptRequest;
21+
pub use agent_client_protocol::PromptResponse;
22+
pub use agent_client_protocol::SessionNotification;
23+
pub use agent_client_protocol::SessionUpdate;

codex-rs/acp/src/tracing_setup.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
//!
33
//! Provides initialization for logging ACP activity to a file using the tracing framework.
44
5-
use anyhow::{Context, Result};
5+
use anyhow::Context;
6+
use anyhow::Result;
67
use std::path::Path;
7-
use tracing_subscriber::{EnvFilter, fmt, layer::SubscriberExt, util::SubscriberInitExt};
8+
use tracing_subscriber::EnvFilter;
9+
use tracing_subscriber::fmt;
10+
use tracing_subscriber::layer::SubscriberExt;
11+
use tracing_subscriber::util::SubscriberInitExt;
812

913
/// Initialize file-based tracing subscriber
1014
///

codex-rs/acp/tests/tracing_test.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use serial_test::serial;
22
use std::fs;
33
use tempfile::TempDir;
4-
use tracing::{debug, error, info, warn};
4+
use tracing::debug;
5+
use tracing::error;
6+
use tracing::info;
7+
use tracing::warn;
58

69
/// Comprehensive test that verifies all tracing functionality
710
/// This must be a single test because the global subscriber can only be set once

codex-rs/core/src/client_acp_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
33
#[cfg(test)]
44
mod tests {
5-
use crate::model_provider_info::{WireApi, built_in_model_providers};
5+
use crate::model_provider_info::WireApi;
6+
use crate::model_provider_info::built_in_model_providers;
67

78
#[test]
89
fn test_mock_acp_provider_exists() {

codex-rs/core/src/config/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,8 @@ fn default_review_model() -> String {
13321332
/// This allows users to specify just `--model mock-acp` without needing to also
13331333
/// specify `--model-provider mock-acp`.
13341334
fn infer_provider_from_model(model: &str) -> Option<String> {
1335-
use crate::model_provider_info::{GEMINI_ACP_PROVIDER_ID, MOCK_ACP_PROVIDER_ID};
1335+
use crate::model_provider_info::GEMINI_ACP_PROVIDER_ID;
1336+
use crate::model_provider_info::MOCK_ACP_PROVIDER_ID;
13361337
tracing::debug!("Inferring provider! found model {model}");
13371338

13381339
// Check for ACP-based models that have their own provider

codex-rs/mock-acp-agent/src/main.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
//! Mock ACP agent for testing nori-cli
22
3-
use std::{cell::Cell, path::PathBuf, rc::Rc};
3+
use std::cell::Cell;
4+
use std::path::PathBuf;
5+
use std::rc::Rc;
46

5-
use agent_client_protocol::{self as acp, Client as _};
7+
use agent_client_protocol::Client as _;
8+
use agent_client_protocol::{self as acp};
69
use serde_json::json;
7-
use tokio::sync::{mpsc, oneshot};
8-
use tokio::time::{Duration, sleep};
9-
use tokio_util::compat::{TokioAsyncReadCompatExt as _, TokioAsyncWriteCompatExt as _};
10+
use tokio::sync::mpsc;
11+
use tokio::sync::oneshot;
12+
use tokio::time::Duration;
13+
use tokio::time::sleep;
14+
use tokio_util::compat::TokioAsyncReadCompatExt as _;
15+
use tokio_util::compat::TokioAsyncWriteCompatExt as _;
1016

1117
enum MockClientRequest {
1218
ReadFile {

codex-rs/tui-integration-tests/src/lib.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
use anyhow::Result;
2-
use portable_pty::{native_pty_system, CommandBuilder, PtySize};
2+
use portable_pty::native_pty_system;
3+
use portable_pty::CommandBuilder;
4+
use portable_pty::PtySize;
35
use std::collections::HashMap;
4-
use std::io::{Read, Write};
5-
use std::time::{Duration, Instant};
6+
use std::io::Read;
7+
use std::io::Write;
8+
use std::time::Duration;
9+
use std::time::Instant;
610
use vt100::Parser;
711

812
#[cfg(unix)]

codex-rs/tui-integration-tests/tests/input_handling.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
use insta::assert_snapshot;
22
use std::time::Duration;
3-
use tui_integration_tests::{normalize_for_snapshot, Key, TuiSession, TIMEOUT};
3+
use tui_integration_tests::normalize_for_snapshot;
4+
use tui_integration_tests::Key;
5+
use tui_integration_tests::TuiSession;
6+
use tui_integration_tests::TIMEOUT;
47

58
#[test]
69
fn test_ctrl_c_clears_input() {

codex-rs/tui-integration-tests/tests/prompt_flow.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use insta::assert_snapshot;
22
use std::time::Duration;
3-
use tui_integration_tests::{Key, SessionConfig, TuiSession};
3+
use tui_integration_tests::Key;
4+
use tui_integration_tests::SessionConfig;
5+
use tui_integration_tests::TuiSession;
46

57
const TIMEOUT: Duration = Duration::from_secs(10);
68

0 commit comments

Comments
 (0)