build(deps): bump diesel from 2.0.3 to 2.1.0 (#1287)

This commit is contained in:
Sanchith Hegde
2023-05-29 13:57:27 +05:30
committed by GitHub
parent 597ec16907
commit b9ec38a1b5
14 changed files with 478 additions and 264 deletions

View File

@ -4,7 +4,7 @@
pub use diesel::Expression;
use diesel::{
backend::{Backend, RawValue},
backend::Backend,
deserialize::{self, FromSql, Queryable},
expression::AsExpression,
internal::derives::as_expression::Bound,
@ -53,7 +53,7 @@ where
S: FromSql<T, DB>,
I: Strategy<S>,
{
fn from_sql(bytes: RawValue<'_, DB>) -> diesel::deserialize::Result<Self> {
fn from_sql(bytes: DB::RawValue<'_>) -> diesel::deserialize::Result<Self> {
S::from_sql(bytes).map(|raw| raw.into())
}
}
@ -123,7 +123,7 @@ where
S: FromSql<T, DB> + ZeroizableSecret,
I: Strategy<S>,
{
fn from_sql(bytes: RawValue<'_, DB>) -> diesel::deserialize::Result<Self> {
fn from_sql(bytes: DB::RawValue<'_>) -> diesel::deserialize::Result<Self> {
S::from_sql(bytes).map(|raw| raw.into())
}
}