Skip to content

Commit a5791bc

Browse files
committed
make clippy happy
1 parent 0a84fdc commit a5791bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/functions/src/string/starts_with.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use datafusion_macros::user_doc;
3434
/// Returns true if string starts with prefix.
3535
/// starts_with('alphabet', 'alph') = 't'
3636
pub fn starts_with(args: &[ArrayRef]) -> Result<ArrayRef> {
37-
let arg0 = arrow::compute::kernels::cast::cast(&args[0], &args[1].data_type())?;
37+
let arg0 = arrow::compute::kernels::cast::cast(&args[0], args[1].data_type())?;
3838
let result = arrow::compute::kernels::comparison::starts_with(&arg0, &args[1])?;
3939
Ok(Arc::new(result) as ArrayRef)
4040
}

0 commit comments

Comments
 (0)