Fix for generic type syntax changes

This commit is contained in:
Steven Fackler
2013-08-28 00:09:50 -04:00
parent 44ea118d02
commit 604b1ddb4d

View File

@@ -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::<Option<$t>>(raw).unwrap()
// FIXME when you can specify Self types properly
let ret: Option<$t> = FromSql::from_sql(raw);
ret.unwrap()
}
}
)