Skip to content

Commit 604b1dd

Browse files
committed
Fix for generic type syntax changes
1 parent 44ea118 commit 604b1dd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,9 @@ macro_rules! from_option_impl(
510510
($t:ty) => (
511511
impl FromSql for $t {
512512
fn from_sql(raw: &Option<~[u8]>) -> $t {
513-
FromSql::from_sql::<Option<$t>>(raw).unwrap()
513+
// FIXME when you can specify Self types properly
514+
let ret: Option<$t> = FromSql::from_sql(raw);
515+
ret.unwrap()
514516
}
515517
}
516518
)

0 commit comments

Comments
 (0)