This is an automated email from the ASF dual-hosted git repository.
jeffreyvo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/main by this push:
new 7a4e639df2 Fix clippy (#9130)
7a4e639df2 is described below
commit 7a4e639df2104e31b8a2aa4a506a1aa778ec7ae8
Author: Andrew Lamb <[email protected]>
AuthorDate: Fri Jan 9 23:36:52 2026 -0500
Fix clippy (#9130)
# Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax.
-->
- Closes #NNN.
# Rationale for this change
Clippy is failiing on main after merging
https://github.com/apache/arrow-rs/commit/cfba3ccc0c9460dba65ca000c34e6491c8043abc
- https://github.com/apache/arrow-rs/pull/8773
Example:
https://github.com/apache/arrow-rs/actions/runs/20865325961/job/59954918027
```
error: deref which would be done by auto-deref
--> arrow-pyarrow/src/lib.rs:636:39
|
636 | Ok(Self(T::from_pyarrow_bound(&*value)?))
| ^^^^^^^ help: try: `&value`
|
= help: for further information visit
https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#explicit_auto_deref
= note: `-D clippy::explicit-auto-deref` implied by `-D warnings`
= help: to override `-D warnings` add
`#[allow(clippy::explicit_auto_deref)]`
```
# What changes are included in this PR?
Apply clippy fix
# Are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->
# Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
If there are any breaking changes to public APIs, please call them out.
-->
---
arrow-pyarrow/src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arrow-pyarrow/src/lib.rs b/arrow-pyarrow/src/lib.rs
index e2b3650709..15951f8dcf 100644
--- a/arrow-pyarrow/src/lib.rs
+++ b/arrow-pyarrow/src/lib.rs
@@ -633,7 +633,7 @@ impl<T: FromPyArrow> FromPyObject<'_, '_> for
PyArrowType<T> {
type Error = PyErr;
fn extract(value: Borrowed<'_, '_, PyAny>) -> PyResult<Self> {
- Ok(Self(T::from_pyarrow_bound(&*value)?))
+ Ok(Self(T::from_pyarrow_bound(&value)?))
}
}