From 37ae860747da7b7a3aaf2de4fae18cb7123a8cbf Mon Sep 17 00:00:00 2001 From: Ivan Ukhov Date: Fri, 12 Jun 2015 14:34:57 -0400 Subject: [PATCH] A minor change --- src/statement.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/statement.rs b/src/statement.rs index 393cfaf..cfd5e44 100644 --- a/src/statement.rs +++ b/src/statement.rs @@ -36,18 +36,18 @@ impl<'l> Statement<'l> { /// The leftmost parameter has the index 1. pub fn bind(&mut self, bindings: &[Binding]) -> Result<()> { for binding in bindings.iter() { - match *binding { - Binding::Float(i, value) => unsafe { + match binding { + &Binding::Float(i, value) => unsafe { debug_assert!(i > 0, "the indexing starts from 1"); success!(self.raw.1, ffi::sqlite3_bind_double(self.raw.0, i as c_int, value as c_double)); }, - Binding::Integer(i, value) => unsafe { + &Binding::Integer(i, value) => unsafe { debug_assert!(i > 0, "the indexing starts from 1"); success!(self.raw.1, ffi::sqlite3_bind_int64(self.raw.0, i as c_int, value as ffi::sqlite3_int64)); }, - Binding::Text(i, value) => unsafe { + &Binding::Text(i, value) => unsafe { debug_assert!(i > 0, "the indexing starts from 1"); success!(self.raw.1, ffi::sqlite3_bind_text(self.raw.0, i as c_int, str_to_c_str!(value), -1, None));