Skip to content

Commit

Permalink
Validity
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesn committed Apr 6, 2024
1 parent 22b308c commit e3a7edf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vortex-array2/src/array/bool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ impl BoolMetadata {
}

// TODO(ngates): I think this could be a struct?
#[allow(clippy::len_without_is_empty)]
pub trait BoolArray {
fn buffer(&self) -> &Buffer;
#[allow(clippy::len_without_is_empty)]
fn len(&self) -> usize;
fn validity(&self) -> Option<Validity>;
}
Expand Down
2 changes: 1 addition & 1 deletion vortex-array2/src/array/primitive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ impl PrimitiveMetadata {
}
}

#[allow(clippy::len_without_is_empty)]
pub trait PrimitiveArray {
fn dtype(&self) -> &DType;
fn ptype(&self) -> PType;
fn buffer(&self) -> &Buffer;
#[allow(clippy::len_without_is_empty)]
fn len(&self) -> usize {
self.buffer().len() / self.ptype().byte_width()
}
Expand Down

0 comments on commit e3a7edf

Please sign in to comment.