This commit is contained in:
John Gallagher 2016-05-16 10:17:25 -05:00
parent 24024b90b6
commit 8124953882

View File

@ -31,9 +31,9 @@ impl FromSql for Value {
let blob = try!(Vec::<u8>::column_result(stmt, col));
serde_json::from_slice(&blob)
}
_ => return Err(Error::InvalidColumnType)
_ => return Err(Error::InvalidColumnType),
};
value_result.map_err(|err| { Error::FromSqlConversionFailure(Box::new(err)) })
value_result.map_err(|err| Error::FromSqlConversionFailure(Box::new(err)))
}
}