Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 55b071b

Browse files
committed
Derive Clone in a macro (now possible).
--HG-- extra : rebase_source : 851499a80287cb8d2271bb9d00c9844a22f8e77e
1 parent 4d53a64 commit 55b071b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/http/headers/mod.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -883,21 +883,12 @@ macro_rules! headers_mod {
883883
ExtensionHeader(~str, ~str),
884884
}
885885
886-
// Can't use #[deriving(Clone)] because of https://github.com/mozilla/rust/issues/6976
886+
#[deriving(Clone)]
887887
pub struct HeaderCollection {
888888
$($lower_ident: Option<$htype>,)*
889889
extensions: TreeMap<~str, ~str>,
890890
}
891891
892-
impl Clone for HeaderCollection {
893-
fn clone(&self) -> HeaderCollection {
894-
HeaderCollection {
895-
$($lower_ident: self.$lower_ident.clone(),)*
896-
extensions: self.extensions.clone(),
897-
}
898-
}
899-
}
900-
901892
impl HeaderCollection {
902893
pub fn new() -> HeaderCollection {
903894
HeaderCollection {

0 commit comments

Comments
 (0)