diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-11 17:52:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-11 17:52:13 +0200 |
| commit | b794cb262fc3398a1beab4ee3aaeefe80454aa69 (patch) | |
| tree | cdfafec8af13e265d61dab17070c3075afa3cdb0 /src/libcore/unicode/unicode_data.rs | |
| parent | 03a724bd486da1d2691df3d8709c688a0704f1e0 (diff) | |
| parent | 7f4048c710249daafacdb6004da312e0681954f5 (diff) | |
| download | rust-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/libcore/unicode/unicode_data.rs')
| -rw-r--r-- | src/libcore/unicode/unicode_data.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/unicode/unicode_data.rs b/src/libcore/unicode/unicode_data.rs index 48caa21fb0a..9c92a8ba28a 100644 --- a/src/libcore/unicode/unicode_data.rs +++ b/src/libcore/unicode/unicode_data.rs @@ -94,7 +94,7 @@ fn skip_search<const SOR: usize, const OFFSETS: usize>( offset_idx % 2 == 1 } -pub const UNICODE_VERSION: (u32, u32, u32) = (13, 0, 0); +pub const UNICODE_VERSION: (u8, u8, u8) = (13, 0, 0); #[rustfmt::skip] pub mod alphabetic { |
