build(deps): bump diesel to 2.2.3 and sqlx to 0.8.1 (#5688)

This commit is contained in:
Sanchith Hegde
2024-08-26 18:59:09 +05:30
committed by GitHub
parent 8b4d0967ae
commit 138134dfb6
17 changed files with 272 additions and 223 deletions

View File

@ -101,7 +101,10 @@ impl<'q, Type> Encode<'q, Postgres> for DBEnumWrapper<Type>
where
Type: DbType + FromStr + Display,
{
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> sqlx::encode::IsNull {
fn encode_by_ref(
&self,
buf: &mut PgArgumentBuffer,
) -> Result<sqlx::encode::IsNull, Box<(dyn std::error::Error + Send + Sync + 'static)>> {
<String as Encode<'q, Postgres>>::encode(self.0.to_string(), buf)
}
fn size_hint(&self) -> usize {