about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-11 17:52:13 +0200
committerGitHub <noreply@github.com>2020-04-11 17:52:13 +0200
commitb794cb262fc3398a1beab4ee3aaeefe80454aa69 (patch)
treecdfafec8af13e265d61dab17070c3075afa3cdb0 /src/tools
parent03a724bd486da1d2691df3d8709c688a0704f1e0 (diff)
parent7f4048c710249daafacdb6004da312e0681954f5 (diff)
downloadrust-b794cb262fc3398a1beab4ee3aaeefe80454aa69.tar.gz
rust-b794cb262fc3398a1beab4ee3aaeefe80454aa69.zip
Rollup merge of #71020 - pyfisch:unicode-version, r=sfackler
Store UNICODE_VERSION as a tuple

Remove the UnicodeVersion struct containing
major, minor and update fields and replace it with
a 3-tuple containing the version number.
As the value of each field is limited to 255
use u8 to store them.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/unicode-table-generator/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/unicode-table-generator/src/main.rs b/src/tools/unicode-table-generator/src/main.rs
index d5562ff91df..6f73b172fea 100644
--- a/src/tools/unicode-table-generator/src/main.rs
+++ b/src/tools/unicode-table-generator/src/main.rs
@@ -295,7 +295,7 @@ fn main() {
 
 fn version() -> String {
     let mut out = String::new();
-    out.push_str("pub const UNICODE_VERSION: (u32, u32, u32) = ");
+    out.push_str("pub const UNICODE_VERSION: (u8, u8, u8) = ");
 
     let readme =
         std::fs::read_to_string(std::path::Path::new(UNICODE_DIRECTORY).join("ReadMe.txt"))