Skip to content

Commit fbea88f

Browse files
committed
lint
1 parent 3472e0d commit fbea88f

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ fn invoke_array_scalars<R: InvokeResult>(
294294
if let Some(string_array) = nested_json_array(json_array, is_object_lookup(path)) {
295295
inner::<R>(string_array, path, jiter_find)
296296
} else {
297-
return exec_err!("unexpected json array type {:?}", other);
297+
exec_err!("unexpected json array type {:?}", other)
298298
}
299299
}
300300
}
@@ -421,7 +421,7 @@ fn zip_apply<'a, R: InvokeResult>(
421421
DataType::Int64 => inner::<_, R>(json_array, path_array.as_primitive::<Int64Type>(), jiter_find),
422422
DataType::UInt64 => inner::<_, R>(json_array, path_array.as_primitive::<UInt64Type>(), jiter_find),
423423
other => {
424-
return exec_err!(
424+
exec_err!(
425425
"unexpected second argument type, expected string or int array, got {:?}",
426426
other
427427
)

src/json_as_text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl InvokeResult for StringArray {
7070
}
7171

7272
fn append_value(builder: &mut Self::Builder, value: Option<Self::Item>) {
73-
builder.append_option(value)
73+
builder.append_option(value);
7474
}
7575

7676
fn finish(mut builder: Self::Builder) -> DataFusionResult<ArrayRef> {

src/json_contains.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl InvokeResult for BooleanArray {
7575
}
7676

7777
fn append_value(builder: &mut Self::Builder, value: Option<Self::Item>) {
78-
builder.append_option(value)
78+
builder.append_option(value);
7979
}
8080

8181
fn finish(mut builder: Self::Builder) -> Result<ArrayRef> {

src/json_get.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ impl InvokeResult for JsonUnion {
7777

7878
fn append_value(builder: &mut Self::Builder, value: Option<Self::Item>) {
7979
if let Some(value) = value {
80-
builder.push(value)
80+
builder.push(value);
8181
} else {
82-
builder.push_none()
82+
builder.push_none();
8383
}
8484
}
8585

src/json_get_float.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl InvokeResult for Float64Array {
7171
}
7272

7373
fn append_value(builder: &mut Self::Builder, value: Option<Self::Item>) {
74-
builder.append_option(value)
74+
builder.append_option(value);
7575
}
7676

7777
fn finish(mut builder: Self::Builder) -> DataFusionResult<ArrayRef> {

0 commit comments

Comments
 (0)