Skip to content

Commit 12e5d4d

Browse files
committed
make clippy happy
1 parent 4df8fbe commit 12e5d4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion/functions/src/string/starts_with.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ pub fn starts_with(args: &[ArrayRef]) -> Result<ArrayRef> {
4141
})
4242
{
4343
let arg0 = if args[0].data_type() == &coercion_data_type {
44-
args[0].clone()
44+
Arc::clone(&args[0])
4545
} else {
4646
arrow::compute::kernels::cast::cast(&args[0], &coercion_data_type)?
4747
};
4848
let arg1 = if args[1].data_type() == &coercion_data_type {
49-
args[1].clone()
49+
Arc::clone(&args[1])
5050
} else {
5151
arrow::compute::kernels::cast::cast(&args[1], &coercion_data_type)?
5252
};

0 commit comments

Comments
 (0)