We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44ea118 commit 604b1ddCopy full SHA for 604b1dd
1 file changed
src/lib.rs
@@ -510,7 +510,9 @@ macro_rules! from_option_impl(
510
($t:ty) => (
511
impl FromSql for $t {
512
fn from_sql(raw: &Option<~[u8]>) -> $t {
513
- FromSql::from_sql::<Option<$t>>(raw).unwrap()
+ // FIXME when you can specify Self types properly
514
+ let ret: Option<$t> = FromSql::from_sql(raw);
515
+ ret.unwrap()
516
}
517
518
)
0 commit comments