From 8d103f28dbcfd738b45263c523b030cc0c6e7806 Mon Sep 17 00:00:00 2001 From: Nanasi <71248588+spellsaif@users.noreply.github.com> Date: Mon, 24 Aug 2026 20:13:37 +0000 Subject: [PATCH] sqlez: Remove stray println in Statement::single (#63151) # Objective - Clean up a stray debug `println!("{:?}", std::any::type_name::());` statement in `Statement::single` that was left in production code. - Prevent unintended output to standard output whenever single-row database queries are executed. ## Solution - Removed the `println!` call from `crates/sqlez/src/statement.rs` inside `Statement::single`. ## Testing - Existing unit and integration tests in `crates/sqlez` cover `Statement::single` query execution. ## Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content adheres to Zed's UI standards ([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux- checklist) and [icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md) guidelines) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable --- Release Notes: - N/A --- crates/sqlez/src/statement.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/sqlez/src/statement.rs b/crates/sqlez/src/statement.rs index 5c9b963d92..53d78b1b9b 100644 --- a/crates/sqlez/src/statement.rs +++ b/crates/sqlez/src/statement.rs @@ -325,7 +325,6 @@ impl<'a> Statement<'a> { this: &mut Statement, callback: impl FnOnce(&mut Statement) -> Result, ) -> Result { - println!("{:?}", std::any::type_name::()); anyhow::ensure!( this.step()? == StepResult::Row, "single called with query that returns no rows."