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

@ -3,7 +3,6 @@
use std::{convert::AsRef, fmt, ops, str::FromStr};
use diesel::{
backend,
backend::Backend,
deserialize,
deserialize::FromSql,
@ -153,7 +152,7 @@ where
DB: Backend,
String: FromSql<sql_types::Text, DB>,
{
fn from_sql(bytes: backend::RawValue<'_, DB>) -> deserialize::Result<Self> {
fn from_sql(bytes: DB::RawValue<'_>) -> deserialize::Result<Self> {
let val = String::from_sql(bytes)?;
Ok(Self::from_str(val.as_str())?)
}