Skip to content

Commit

Permalink
Fix build failed on stable version of rust
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Dec 11, 2021
1 parent bc0ca9b commit 8096a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ fn generate_char_table(
Some((_, end)) if *end + GAP_THRESHOLD > *code => *end = *code + 1,
_ => block_ranges.push((*code, *code + 1)),
});
// 当我们允许最大2048个空位时,我们目前会切出3个块。如果这个数字在未来增加了,我们也许会希望调整策略。
assert_eq!(block_ranges.len(), 4);
// 当我们允许最大2048个空位时,我们目前会切出6个块。如果这个数字在未来增加了,我们也许会希望调整策略。
assert_eq!(block_ranges.len(), 6);

// 输出字符表
let mut output = create_out_file("char_blocks.rs")?;
Expand Down

0 comments on commit 8096a1f

Please sign in to comment.