Skip to content

Commit

Permalink
Fix clippy error (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
kampersanda authored Jan 24, 2024
1 parent 7f825a4 commit a9ffd60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/char_sequences/wavelet_matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ where
/// Returns the number of values stored.
#[inline(always)]
pub fn len(&self) -> usize {
self.layers.get(0).map(|l| l.num_bits()).unwrap_or(0)
self.layers.first().map(|l| l.num_bits()).unwrap_or(0)
}

/// Checks if the sequence is empty.
Expand Down

0 comments on commit a9ffd60

Please sign in to comment.