Remove Self: Type bounds in Encode / Decode implementations

This commit is contained in:
Jonas Platte 2021-04-12 13:23:06 +02:00 committed by Ryan Leckey
parent 81ae756e86
commit 73d35e73a6
2 changed files with 0 additions and 6 deletions

View file

@ -37,7 +37,6 @@ impl<'q, T> Encode<'q, Postgres> for Vec<T>
where
for<'a> &'a [T]: Encode<'q, Postgres>,
T: Encode<'q, Postgres>,
Self: Type<Postgres>,
{
#[inline]
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull {
@ -48,7 +47,6 @@ where
impl<'q, T> Encode<'q, Postgres> for &'_ [T]
where
T: Encode<'q, Postgres> + Type<Postgres>,
Self: Type<Postgres>,
{
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull {
buf.extend(&1_i32.to_be_bytes()); // number of dimensions
@ -77,7 +75,6 @@ where
impl<'r, T> Decode<'r, Postgres> for Vec<T>
where
T: for<'a> Decode<'a, Postgres> + Type<Postgres>,
Self: Type<Postgres>,
{
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError> {
let element_type_info;

View file

@ -86,7 +86,6 @@ where
impl<'q, DB> Encode<'q, DB> for JsonValue
where
Self: Type<DB>,
for<'a> Json<&'a Self>: Encode<'q, DB>,
DB: Database,
{
@ -97,7 +96,6 @@ where
impl<'r, DB> Decode<'r, DB> for JsonValue
where
Self: Type<DB>,
Json<Self>: Decode<'r, DB>,
DB: Database,
{
@ -124,7 +122,6 @@ where
// implementation for Encode
impl<'r, DB> Decode<'r, DB> for &'r JsonRawValue
where
Self: Type<DB>,
Json<Self>: Decode<'r, DB>,
DB: Database,
{