Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Aug 13, 2023
1 parent 048039b commit 424d0f7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ fn make_context(path: Option<&Path>) -> Context {

#[allow(clippy::type_complexity)]
fn get_truncated_table_data(
unicode_data: &'static str, truncate: Option<usize>,
unicode_data: &'static str,
truncate: Option<usize>,
) -> (Vec<(char, &'static str)>, Vec<(char, char)>) {
let TableData {
mut codepoint_names,
Expand All @@ -372,7 +373,13 @@ fn get_truncated_table_data(
(codepoint_names, cjk)
}

pub fn generate_phf(unicode_data: &'static str, path: Option<&Path>, truncate: Option<usize>, lambda: usize, tries: usize) {
pub fn generate_phf(
unicode_data: &'static str,
path: Option<&Path>,
truncate: Option<usize>,
lambda: usize,
tries: usize,
) {
let (codepoint_names, _) = get_truncated_table_data(unicode_data, truncate);

let mut ctxt = make_context(path);
Expand Down

0 comments on commit 424d0f7

Please sign in to comment.