From 604b1ddb4d568cb17672ec50590d7a73b11113a3 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 28 Aug 2013 00:09:50 -0400 Subject: [PATCH] Fix for generic type syntax changes --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 99259c8a..50c851f8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -510,7 +510,9 @@ macro_rules! from_option_impl( ($t:ty) => ( impl FromSql for $t { fn from_sql(raw: &Option<~[u8]>) -> $t { - FromSql::from_sql::>(raw).unwrap() + // FIXME when you can specify Self types properly + let ret: Option<$t> = FromSql::from_sql(raw); + ret.unwrap() } } )