From a77ad512495a821911aabc0b240de41905bf0657 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Tue, 23 Sep 2025 14:21:30 -0400 Subject: [PATCH] Fix clippy --- arrow-pyarrow/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arrow-pyarrow/src/lib.rs b/arrow-pyarrow/src/lib.rs index a238b4abbb07..62e21758355f 100644 --- a/arrow-pyarrow/src/lib.rs +++ b/arrow-pyarrow/src/lib.rs @@ -178,7 +178,7 @@ impl ToPyArrow for DataType { let module = py.import("pyarrow")?; let class = module.getattr("DataType")?; let dtype = class.call_method1("_import_from_c", (c_schema_ptr as Py_uintptr_t,))?; - Ok(dtype.into()) + Ok(dtype) } } @@ -214,7 +214,7 @@ impl ToPyArrow for Field { let module = py.import("pyarrow")?; let class = module.getattr("Field")?; let dtype = class.call_method1("_import_from_c", (c_schema_ptr as Py_uintptr_t,))?; - Ok(dtype.into()) + Ok(dtype) } } @@ -250,7 +250,7 @@ impl ToPyArrow for Schema { let module = py.import("pyarrow")?; let class = module.getattr("Schema")?; let schema = class.call_method1("_import_from_c", (c_schema_ptr as Py_uintptr_t,))?; - Ok(schema.into()) + Ok(schema) } }