]> git.lizzy.rs Git - rust.git/blobdiff - src/etc/unicode.py
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / etc / unicode.py
index 63f1b3dcd4414f2fd4ec946acb3d5ab3db7ccf26..4952b99ab464ef4e872b57f7602c5fbd0d60f365 100755 (executable)
@@ -392,15 +392,13 @@ def emit_grapheme_module(f, grapheme_table, grapheme_cats):
     use core::slice;
 
     #[allow(non_camel_case_types)]
-    #[deriving(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, _)| {