Skip to content

Commit

Permalink
MINOR: Fix clippy for rust 1.64.0 (#2772)
Browse files Browse the repository at this point in the history
* Fix clippy

* More
  • Loading branch information
viirya authored Sep 22, 2022
1 parent c2972c1 commit b7bcfd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arrow/src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1392,8 +1392,8 @@ mod tests {
// verify
assert_eq!(array, Int32Array::from(vec![2, 4, 6]));

Box::from_raw(out_array_ptr);
Box::from_raw(out_schema_ptr);
drop(Box::from_raw(out_array_ptr));
drop(Box::from_raw(out_schema_ptr));
}
Ok(())
}
Expand Down
4 changes: 2 additions & 2 deletions parquet/src/column/writer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1071,10 +1071,10 @@ fn compare_greater_byte_array_decimals(a: &[u8], b: &[u8]) -> bool {
if a_length != b_length {
let not_equal = if a_length > b_length {
let lead_length = a_length - b_length;
(&a[0..lead_length]).iter().any(|&x| x != extension)
a[0..lead_length].iter().any(|&x| x != extension)
} else {
let lead_length = b_length - a_length;
(&b[0..lead_length]).iter().any(|&x| x != extension)
b[0..lead_length].iter().any(|&x| x != extension)
};

if not_equal {
Expand Down

0 comments on commit b7bcfd8

Please sign in to comment.