Skip to content

Commit 3361251

Browse files
author
bors-servo
authored
Auto merge of #399 - servo:frewsxcv-revert, r=SimonSapin
Revert "Derive `Copy` for some structures." This reverts commit efffb61. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/399) <!-- Reviewable:end -->
2 parents 54d36fe + 195d885 commit 3361251

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

idna/src/uts46.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ include!("uts46_mapping_table.rs");
2323
pub static PUNYCODE_PREFIX: &'static str = "xn--";
2424

2525

26-
#[derive(Clone, Copy, Debug)]
26+
#[derive(Debug)]
2727
struct StringTableSlice {
2828
// Store these as separate fields so the structure will have an
2929
// alignment of 1 and thus pack better into the Mapping enum, below.
@@ -41,7 +41,7 @@ fn decode_slice(slice: &StringTableSlice) -> &'static str {
4141
}
4242

4343
#[repr(u8)]
44-
#[derive(Clone, Copy, Debug)]
44+
#[derive(Debug)]
4545
enum Mapping {
4646
Valid,
4747
Ignored,
@@ -52,7 +52,6 @@ enum Mapping {
5252
DisallowedStd3Mapped(StringTableSlice),
5353
}
5454

55-
#[derive(Clone, Copy)]
5655
struct Range {
5756
from: char,
5857
to: char,

0 commit comments

Comments
 (0)