From 6e3deb97f94058070d261ddd94b8c318c0d8d699 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 12 Nov 2015 21:17:06 -0800 Subject: [PATCH] Use full UFCS in to_sql_checked macro Make sure we don't accidentally call an inherent to_sql method --- src/types/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/mod.rs b/src/types/mod.rs index dfe2e34b..a73b22ab 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -37,7 +37,7 @@ macro_rules! to_sql_checked { if !::accepts(ty) { return Err($crate::error::Error::WrongType(ty.clone())); } - self.to_sql(ty, out, ctx) + ::to_sql(self, ty, out, ctx) } } }