Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonVandeVyver committed Oct 28, 2024
1 parent bfd9069 commit 1ff2e0f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libsais64-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ pub fn sais64(text: Vec<u8>, libsais_sparseness: usize) -> Result<Vec<i64>, &'st
let required_bits = libsais_sparseness * BITS_PER_CHAR;
if required_bits <= 8 {
// bitpacked values fit in uint8_t
let packed_text = if libsais_sparseness == 1 {
text
} else {
bitpack_text_8(text, libsais_sparseness)
};
let packed_text = if libsais_sparseness == 1 { text } else { bitpack_text_8(text, libsais_sparseness) };

sa = vec![0; packed_text.len()];
exit_code =
Expand Down

0 comments on commit 1ff2e0f

Please sign in to comment.