Skip to content

Commit 34c8dc9

Browse files
author
andrew
committed
Fixes
1 parent b09e9cc commit 34c8dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres-types/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ impl<T: ToSql> ToSql for Box<[T]> {
10371037

10381038
impl<'a> ToSql for Cow<'a, [u8]> {
10391039
fn to_sql(&self, ty: &Type, w: &mut BytesMut) -> Result<IsNull, Box<dyn Error + Sync + Send>> {
1040-
<&str as ToSql>::to_sql(&self.as_ref(), ty, w)
1040+
<&[u8] as ToSql>::to_sql(&self.as_ref(), ty, w)
10411041
}
10421042

10431043
fn accepts(ty: &Type) -> bool {

0 commit comments

Comments
 (0)