#[deriving] -> #[derive]

This commit is contained in:
Jonathan Reem
2015-01-03 13:15:54 +01:00
parent 541e21dbd1
commit 7f3a33f903
32 changed files with 43 additions and 43 deletions

View File

@@ -110,7 +110,7 @@ fn header_name<T: Header>() -> &'static str {
}
/// A map of header fields on requests and responses.
#[deriving(Clone)]
#[derive(Clone)]
pub struct Headers {
data: HashMap<CaseInsensitive, MuCell<Item>>
}
@@ -342,7 +342,7 @@ impl<'a> FromIterator<HeaderView<'a>> for Headers {
}
}
#[deriving(Clone)]
#[derive(Clone)]
struct Item {
raw: Option<Vec<Vec<u8>>>,
typed: Option<Box<HeaderFormat + Send + Sync>>
@@ -450,7 +450,7 @@ impl fmt::Show for Box<HeaderFormat + Send + Sync> {
}
/// Case-insensitive string.
//#[deriving(Clone)]
//#[derive(Clone)]
pub struct CaseInsensitive(SendStr);
impl FromStr for CaseInsensitive {
@@ -562,7 +562,7 @@ mod tests {
assert_eq!(accept, Some(Accept(vec![application_vendor, text_plain])));
}
#[deriving(Clone, Show)]
#[derive(Clone, Show)]
struct CrazyLength(Option<bool>, uint);
impl Header for CrazyLength {