Skip to content
Snippets Groups Projects
Commit 51ea5fe6 authored by Mend Renovate's avatar Mend Renovate :speech_balloon: Committed by Filip Gospodinov
Browse files

Update diesel packages to 2.1.0

Diesel 2.1.0 has received several GAT cleanups for
workarounds required when rust didn't support them.
Hence, several types have become associated types.
For users that don't enable the `with-deprecated`
feature this is a breaking change because the bridging
type alias is then not present.
parent 9cfcf457
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added a new `RegistrationAuthority` type.
- Updated the registration authority list to [v1.7](https://www.gleif.org/about-lei/code-lists/gleif-registration-authorities-list/2022-03-23_ra_list_v1.7.xlsx).
- Pinned the minimum required `diesel` version to `2.1.0`. and fixed
the (feature-flag protected) breaking changes.
## [0.1.2](https://gitlab.com/21analytics/lei/-/tags/0.1.2) - 2023-06-12
......
......@@ -17,7 +17,7 @@ rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
async-graphql = { optional = true, version = "5", default-features = false, features = [ "chrono" ] }
diesel = { optional = true, version = "2.0.*", default-features = false }
diesel = { optional = true, version = "2.1", default-features = false }
rand = "0.8"
serde = { version = "1", features = [ "derive" ] }
thiserror = "1"
......
......@@ -89,7 +89,7 @@ where
DB: diesel::backend::Backend,
String: diesel::deserialize::FromSql<diesel::sql_types::Text, DB>,
{
fn from_sql(bytes: diesel::backend::RawValue<DB>) -> diesel::deserialize::Result<Self> {
fn from_sql(bytes: DB::RawValue<'_>) -> diesel::deserialize::Result<Self> {
Ok(std::convert::TryFrom::try_from(
String::from_sql(bytes)?.as_str(),
)?)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment