Skip to content

Commit 2863707

Browse files
authored
Merge pull request #44 from dtolnay/u8
Match the type of char::UNICODE_VERSION
2 parents 22456b4 + b28f2d8 commit 2863707

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

generate/src/parse.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ use std::path::Path;
66
use std::process;
77

88
pub struct Properties {
9-
unicode_version: (u64, u64, u64),
9+
unicode_version: (u8, u8, u8),
1010
xid_start: Set<u32>,
1111
xid_continue: Set<u32>,
1212
}
1313

1414
impl Properties {
15-
pub const fn unicode_version(&self) -> (u64, u64, u64) {
15+
pub const fn unicode_version(&self) -> (u8, u8, u8) {
1616
self.unicode_version
1717
}
1818

@@ -81,7 +81,7 @@ fn parse_codepoint(s: &str) -> Option<u32> {
8181
u32::from_str_radix(s, 16).ok()
8282
}
8383

84-
fn parse_unicode_version(filename: &str, contents: &str) -> (u64, u64, u64) {
84+
fn parse_unicode_version(filename: &str, contents: &str) -> (u8, u8, u8) {
8585
let (name, extension) = filename
8686
.rsplit_once('.')
8787
.expect("Failed to split file name into name and extension");

generate/src/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn output(
2626

2727
writeln!(
2828
out,
29-
"pub const UNICODE_VERSION: (u64, u64, u64) = {:?};",
29+
"pub const UNICODE_VERSION: (u8, u8, u8) = {:?};",
3030
properties.unicode_version(),
3131
);
3232
writeln!(out);

src/tables.rs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)