Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jul 8, 2024
1 parent bd1a1f9 commit ea03a8f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,14 @@ rustc_version = "0.4.0"
[package.metadata.cargo-all-features]
allowlist = ["compute", "compute_sort", "compute_hash", "compute_nullif"]

# ---------------------------------------------------------------------------------

[lints.clippy]
blocks_in_conditions = "allow"
manual_hash_one = "allow"

# ---------------------------------------------------------------------------------

[[bench]]
name = "take_kernels"
harness = false
Expand Down
2 changes: 1 addition & 1 deletion src/array/growable/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl<'a> Growable<'a> for GrowableStruct<'a> {
// All children should have the same indexing, so just use the first
// one. If we don't have children, we might still have a validity
// array, so use that.
if let Some(child) = self.values.get(0) {
if let Some(child) = self.values.first() {
child.len()
} else {
self.validity.len()
Expand Down

0 comments on commit ea03a8f

Please sign in to comment.