From 1b47623c26d09b9adbcca861856e10645c620911 Mon Sep 17 00:00:00 2001 From: Ion Koutsouris <15728914+ion-elgreco@users.noreply.github.com> Date: Sat, 24 Aug 2024 11:43:10 +0200 Subject: [PATCH] chore: clippy on merge --- python/src/merge.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/src/merge.rs b/python/src/merge.rs index cdf997a935..8fb1f044d8 100644 --- a/python/src/merge.rs +++ b/python/src/merge.rs @@ -32,6 +32,7 @@ pub(crate) struct PyMergeBuilder { } impl PyMergeBuilder { + #[allow(clippy::too_many_arguments)] pub fn new( log_store: LogStoreRef, snapshot: DeltaTableState, @@ -73,8 +74,8 @@ impl PyMergeBuilder { } Ok(Self { _builder: Some(cmd), - source_alias: source_alias, - target_alias: target_alias, + source_alias, + target_alias, arrow_schema: schema, }) } @@ -89,7 +90,7 @@ impl PyMergeBuilder { impl PyMergeBuilder { #[getter] fn get_arrow_schema(&self, py: Python) -> PyResult { - Ok(::clone(&self.arrow_schema).into_pyarrow(py)?) + ::clone(&self.arrow_schema).into_pyarrow(py) } #[pyo3(signature=(