Skip to content

Commit bab1efc

Browse files
authored
chore(rust): fix new clippy lints (#3076)
Fixes #3075.
1 parent ba2efd0 commit bab1efc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rust/core/src/driver_exporter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

rust/core/src/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)