From 9179dae0d708249e674d1c013d419b92bd5525fa Mon Sep 17 00:00:00 2001 From: VG Date: Fri, 8 Mar 2024 00:28:23 +0800 Subject: [PATCH] chore: fix clippy --- dozer-sink-clickhouse/src/types.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dozer-sink-clickhouse/src/types.rs b/dozer-sink-clickhouse/src/types.rs index c2cf3b831b..56ade44a41 100644 --- a/dozer-sink-clickhouse/src/types.rs +++ b/dozer-sink-clickhouse/src/types.rs @@ -1,3 +1,4 @@ +#![allow(clippy::redundant_closure_call)] use crate::errors::QueryError; use chrono_tz::{Tz, UTC}; @@ -294,7 +295,7 @@ pub async fn insert_multi( NaiveDate, column_values, n, - |f: &NaiveDate| -> Option { Some(f.clone()) } + |f: &NaiveDate| -> Option { Some(*f) } ) } FieldType::Json => {