sqlez: Remove stray println in Statement::single (#63151)

# Objective

- Clean up a stray debug `println!("{:?}", std::any::type_name::<R>());`
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
This commit is contained in:
Nanasi authored and GitHub committed 2026-08-24 20:13:37 +00:00
1 parent 5a4473f92a
commit 8d103f28db
1 file changed
-1
-1
View File
@@ -325,7 +325,6 @@ impl<'a> Statement<'a> {
this: &mut Statement,
callback: impl FnOnce(&mut Statement) -> Result<R>,
) -> Result<R> {
println!("{:?}", std::any::type_name::<R>());
anyhow::ensure!(
this.step()? == StepResult::Row,
"single called with query that returns no rows."