From 3ae44a0abd36cf897ea991e60212485d862ba2c2 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Mon, 9 Jan 2023 15:46:41 +0800 Subject: [PATCH] One more tweak --- src/executor/query.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/executor/query.rs b/src/executor/query.rs index bbe585f9..c5e20513 100644 --- a/src/executor/query.rs +++ b/src/executor/query.rs @@ -257,7 +257,6 @@ macro_rules! try_getable_all { .and_then(|opt| opt.ok_or_else(|| err_null_idx_col(idx))) } #[cfg(feature = "mock")] - #[allow(unused_variables)] QueryResultRow::Mock(row) => row.try_get(idx).map_err(|e| { debug_print!("{:#?}", e.to_string()); err_null_idx_col(idx) @@ -295,7 +294,6 @@ macro_rules! try_getable_unsigned { .and_then(|opt| opt.ok_or_else(|| err_null_idx_col(idx))) } #[cfg(feature = "mock")] - #[allow(unused_variables)] QueryResultRow::Mock(row) => row.try_get(idx).map_err(|e| { debug_print!("{:#?}", e.to_string()); err_null_idx_col(idx) @@ -330,7 +328,6 @@ macro_rules! try_getable_mysql { panic!("{} unsupported by sqlx-sqlite", stringify!($type)) } #[cfg(feature = "mock")] - #[allow(unused_variables)] QueryResultRow::Mock(row) => row.try_get(idx).map_err(|e| { debug_print!("{:#?}", e.to_string()); err_null_idx_col(idx) @@ -376,7 +373,6 @@ macro_rules! try_getable_date_time { .map(|v| v.into()) } #[cfg(feature = "mock")] - #[allow(unused_variables)] QueryResultRow::Mock(row) => row.try_get(idx).map_err(|e| { debug_print!("{:#?}", e.to_string()); err_null_idx_col(idx)