Skip to content

Commit

Permalink
fix: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxiangzhuang committed May 27, 2024
1 parent 99423a6 commit 8f16eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pub fn get_token_ngram_counter(tokens: &[String], max_order: usize) -> AHashMap<
count_map
}


#[cfg(test)]
mod test {
use crate::ngram::get_token_ngram_counter;
Expand Down Expand Up @@ -68,7 +67,8 @@ mod benchmark {
"a".to_string(),
"b".to_string(),
"c".to_string(),
]; let max_order = 4;
];
let max_order = 4;

let iter_num: usize = 100;
b.iter(|| {
Expand Down

0 comments on commit 8f16eca

Please sign in to comment.