File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1632,9 +1632,9 @@ unsafe extern "C" fn error_get_detail(
16321632 }
16331633 let private_data = error. private_data as * const ErrorPrivateData ;
16341634
1635- let key = ( * private_data) . keys [ index] . as_ptr ( ) ;
1636- let value = ( * private_data) . values [ index] . as_ptr ( ) ;
1637- let value_length = ( * private_data) . values [ index] . len ( ) ;
1635+ let key = ( & ( * private_data) . keys ) [ index] . as_ptr ( ) ;
1636+ let value = ( & ( * private_data) . values ) [ index] . as_ptr ( ) ;
1637+ let value_length = ( & ( * private_data) . values ) [ index] . len ( ) ;
16381638
16391639 FFI_AdbcErrorDetail {
16401640 key,
Original file line number Diff line number Diff line change @@ -621,7 +621,7 @@ impl TryFrom<i16> for Statistics {
621621 constants:: ADBC_STATISTIC_NULL_COUNT_KEY => Ok ( Self :: NullCount ) ,
622622 constants:: ADBC_STATISTIC_ROW_COUNT_KEY => Ok ( Self :: RowCount ) ,
623623 _ => Err ( Error :: with_message_and_status (
624- format ! ( "Unknown standard statistic key: {}" , value ) ,
624+ format ! ( "Unknown standard statistic key: {value}" ) ,
625625 Status :: InvalidArguments ,
626626 ) ) ,
627627 }
You can’t perform that action at this time.
0 commit comments