diff options
Diffstat (limited to 'src/etc/unicode.py')
| -rwxr-xr-x | src/etc/unicode.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/etc/unicode.py b/src/etc/unicode.py index 4a0bb992fd9..4952b99ab46 100755 --- a/src/etc/unicode.py +++ b/src/etc/unicode.py @@ -392,15 +392,13 @@ def emit_grapheme_module(f, grapheme_table, grapheme_cats): use core::slice; #[allow(non_camel_case_types)] - #[derive(Clone)] + #[derive(Clone, Copy)] pub enum GraphemeCat { """) for cat in grapheme_cats + ["Any"]: f.write(" GC_" + cat + ",\n") f.write(""" } - impl Copy for GraphemeCat {} - fn bsearch_range_value_table(c: char, r: &'static [(char, char, GraphemeCat)]) -> GraphemeCat { use core::cmp::Ordering::{Equal, Less, Greater}; match r.binary_search(|&(lo, hi, _)| { |
