This is an automated email from the ASF dual-hosted git repository.

mbrobbel pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new bab1efcb9 chore(rust): fix new clippy lints (#3076)
bab1efcb9 is described below

commit bab1efcb97af17a6f7ac9cfab878f195a5dd86e0
Author: David Li <[email protected]>
AuthorDate: Tue Jul 1 16:42:08 2025 +0900

    chore(rust): fix new clippy lints (#3076)
    
    Fixes #3075.
---
 rust/core/src/driver_exporter.rs | 6 +++---
 rust/core/src/options.rs         | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/rust/core/src/driver_exporter.rs b/rust/core/src/driver_exporter.rs
index dd10a8fa0..3ea52f364 100644
--- a/rust/core/src/driver_exporter.rs
+++ b/rust/core/src/driver_exporter.rs
@@ -1632,9 +1632,9 @@ unsafe extern "C" fn error_get_detail(
             }
             let private_data = error.private_data as *const ErrorPrivateData;
 
-            let key = (*private_data).keys[index].as_ptr();
-            let value = (*private_data).values[index].as_ptr();
-            let value_length = (*private_data).values[index].len();
+            let key = (&(*private_data).keys)[index].as_ptr();
+            let value = (&(*private_data).values)[index].as_ptr();
+            let value_length = (&(*private_data).values)[index].len();
 
             FFI_AdbcErrorDetail {
                 key,
diff --git a/rust/core/src/options.rs b/rust/core/src/options.rs
index 0d3af92ff..7e3e443bd 100644
--- a/rust/core/src/options.rs
+++ b/rust/core/src/options.rs
@@ -621,7 +621,7 @@ impl TryFrom<i16> for Statistics {
             constants::ADBC_STATISTIC_NULL_COUNT_KEY => Ok(Self::NullCount),
             constants::ADBC_STATISTIC_ROW_COUNT_KEY => Ok(Self::RowCount),
             _ => Err(Error::with_message_and_status(
-                format!("Unknown standard statistic key: {}", value),
+                format!("Unknown standard statistic key: {value}"),
                 Status::InvalidArguments,
             )),
         }

Reply via email to