From 35e319a62acb188c44c179b82072399644ba22d2 Mon Sep 17 00:00:00 2001 From: gwenn Date: Sun, 20 Jan 2019 19:41:33 +0100 Subject: [PATCH] Fix unused imports in context and session tests --- src/context.rs | 4 +--- src/session.rs | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/context.rs b/src/context.rs index 1b5bba4..71a5218 100644 --- a/src/context.rs +++ b/src/context.rs @@ -1,13 +1,11 @@ //! Code related to `sqlite3_context` common to `functions` and `vtab` modules. -use std::ffi::CStr; -use std::os::raw::{c_char, c_int, c_void}; +use std::os::raw::{c_int, c_void}; #[cfg(feature = "array")] use std::rc::Rc; use crate::ffi; use crate::ffi::sqlite3_context; -use crate::ffi::sqlite3_value; use crate::str_to_cstring; use crate::types::{ToSqlOutput, ValueRef}; diff --git a/src/session.rs b/src/session.rs index a07bd00..fc8a9e7 100644 --- a/src/session.rs +++ b/src/session.rs @@ -809,7 +809,7 @@ mod test { assert!(!called.load(Ordering::Relaxed)); let check = db - .query_row("SELECT 1 FROM foo WHERE t = ?", &["bar"], |row| row.get(0)) + .query_row("SELECT 1 FROM foo WHERE t = ?", &["bar"], |row| row.get::<_, i32>(0)) .unwrap(); assert_eq!(1, check); @@ -845,7 +845,7 @@ mod test { .unwrap(); let check = db - .query_row("SELECT 1 FROM foo WHERE t = ?", &["bar"], |row| row.get(0)) + .query_row("SELECT 1 FROM foo WHERE t = ?", &["bar"], |row| row.get::<_, i32>(0)) .unwrap(); assert_eq!(1, check); }