瀏覽代碼

Revert "Derive `Copy` for some structures."

This reverts commit efffb61a3ac457d747441d813856ba991da79c45.
Corey Farwell 9 年之前
父節點
當前提交
195d885d7f
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      idna/src/uts46.rs

+ 2 - 3
idna/src/uts46.rs

@@ -23,7 +23,7 @@ include!("uts46_mapping_table.rs");
 pub static PUNYCODE_PREFIX: &'static str = "xn--";
 
 
-#[derive(Clone, Copy, Debug)]
+#[derive(Debug)]
 struct StringTableSlice {
     // Store these as separate fields so the structure will have an
     // alignment of 1 and thus pack better into the Mapping enum, below.
@@ -41,7 +41,7 @@ fn decode_slice(slice: &StringTableSlice) -> &'static str {
 }
 
 #[repr(u8)]
-#[derive(Clone, Copy, Debug)]
+#[derive(Debug)]
 enum Mapping {
     Valid,
     Ignored,
@@ -52,7 +52,6 @@ enum Mapping {
     DisallowedStd3Mapped(StringTableSlice),
 }
 
-#[derive(Clone, Copy)]
 struct Range {
     from: char,
     to: char,