Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify type of diesel::row::NamedRow::get in QueryableByName macro.
This has the signature ``` fn get<ST, T>(&self, column_name: &str) -> Result<T> where T: FromSql<ST, DB> ``` This can be inferred from the resulting value, if there is only one `ST` type in scope for `FromSql<ST, DB>`. But if multiple types are in scope, e.g. ``` impl<__DB: diesel::backend::Backend> QueryableByName<__DB> for StructWithTextAndCitext where String: diesel::deserialize::FromSql<sql_types::Text, __DB>, String: diesel::deserialize::FromSql<sql_types::Citext, __DB>, { ``` then `ST` cannot be inferred.
- Loading branch information