diff --git a/arrow-pg/src/encoder.rs b/arrow-pg/src/encoder.rs index 536c16c..bd9b3a6 100644 --- a/arrow-pg/src/encoder.rs +++ b/arrow-pg/src/encoder.rs @@ -525,7 +525,7 @@ pub fn encode_value( return Err(PgWireError::ApiError(ToSqlError::from(format!( "Unsupported Datatype {} and array {:?}", arr.data_type(), - &arr + arr )))); } } diff --git a/arrow-pg/src/list_encoder.rs b/arrow-pg/src/list_encoder.rs index 1a0788b..2db41f8 100644 --- a/arrow-pg/src/list_encoder.rs +++ b/arrow-pg/src/list_encoder.rs @@ -624,7 +624,7 @@ pub fn encode_list( // TODO: add support for more advanced types (fixed size lists, etc.) list_type => Err(PgWireError::ApiError(ToSqlError::from(format!( "Unsupported List Datatype {} and array {:?}", - list_type, &arr + list_type, arr )))), } }