Skip to content

Commit 68c427c

Browse files
committed
feat: implement Encode,Decode,Type for Arc<str> and Arc<[u8]>
1 parent 37ecab1 commit 68c427c

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

sqlx-postgres/src/types/array.rs

-13
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,6 @@ where
131131
}
132132
}
133133

134-
impl<T> Type<Postgres> for Arc<[T]>
135-
where
136-
T: PgHasArrayType,
137-
{
138-
fn type_info() -> PgTypeInfo {
139-
T::array_type_info()
140-
}
141-
142-
fn compatible(ty: &PgTypeInfo) -> bool {
143-
T::array_compatible(ty)
144-
}
145-
}
146-
147134
impl<'q, T> Encode<'q, Postgres> for Vec<T>
148135
where
149136
for<'a> &'a [T]: Encode<'q, Postgres>,

sqlx-postgres/src/types/str.rs

-10
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,6 @@ impl Type<Postgres> for String {
5555
}
5656
}
5757

58-
impl Type<Postgres> for Arc<str> {
59-
fn type_info() -> PgTypeInfo {
60-
<&str as Type<Postgres>>::type_info()
61-
}
62-
63-
fn compatible(ty: &PgTypeInfo) -> bool {
64-
<&str as Type<Postgres>>::compatible(ty)
65-
}
66-
}
67-
6858
impl PgHasArrayType for &'_ str {
6959
fn array_type_info() -> PgTypeInfo {
7060
PgTypeInfo::TEXT_ARRAY

0 commit comments

Comments
 (0)