Skip to content

Commit 8f29b60

Browse files
committed
Fix cargo fmt and clippy warnings in pgwire client and import ordering
- Reorder crate:: imports in base.rs and core/utils.rs to satisfy rustfmt (external crates before local crate imports, within their own groups) - Fix trailing comment alignment in pgwire.rs match arms per rustfmt rules - Replace needless range loop with iterator in parse_data_row (clippy) https://claude.ai/code/session_01GzGtjMcwBXyVW3uKW4F2Ai
1 parent 33340e1 commit 8f29b60

3 files changed

Lines changed: 324 additions & 324 deletions

File tree

src/commands/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use std::path::Path;
1111
use std::process;
1212

1313
use log::{debug, error, info};
14-
use crate::utils::pgwire::PgwireLite;
1514

1615
use crate::core::config::{get_full_context, render_globals, render_string_value};
1716
use crate::core::env::load_env_vars;
@@ -25,6 +24,7 @@ use crate::core::utils::{
2524
use crate::resource::manifest::{Manifest, Resource};
2625
use crate::resource::validation::validate_manifest;
2726
use crate::template::engine::TemplateEngine;
27+
use crate::utils::pgwire::PgwireLite;
2828

2929
/// Core state for all command operations, equivalent to Python's StackQLBase.
3030
pub struct CommandRunner {

src/core/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use std::thread;
1212
use std::time::{Duration, Instant};
1313

1414
use log::{debug, error, info, warn};
15-
use crate::utils::pgwire::PgwireLite;
1615

16+
use crate::utils::pgwire::PgwireLite;
1717
use crate::utils::query::{execute_query, QueryResult};
1818

1919
/// Exit with error message. Matches Python's `catch_error_and_exit`.

0 commit comments

Comments
 (0)