Skip to content

Commit 4e7492b

Browse files
committed
Fix clippy: use deref instead of clone on Copy type
1 parent 0f9a293 commit 4e7492b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl ScalarUDFImpl for AtTimeZoneUDF {
214214

215215
fn return_type(&self, arg_types: &[DataType]) -> datafusion::error::Result<DataType> {
216216
match &arg_types[0] {
217-
DataType::Timestamp(unit, _) => Ok(DataType::Timestamp(unit.clone(), None)),
217+
DataType::Timestamp(unit, _) => Ok(DataType::Timestamp(*unit, None)),
218218
_ => Ok(DataType::Timestamp(TimeUnit::Microsecond, None)),
219219
}
220220
}

0 commit comments

Comments
 (0)