#[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

@@ -18,7 +18,7 @@ use self::Encoding::{Chunked, Gzip, Deflate, Compress, EncodingExt};
/// this header should include `chunked` as the last encoding.
///
/// The implementation uses a vector of `Encoding` values.
#[deriving(Clone, PartialEq, Show)]
#[derive(Clone, PartialEq, Show)]
pub struct TransferEncoding(pub Vec<Encoding>);
deref!(TransferEncoding -> Vec<Encoding>);
@@ -33,7 +33,7 @@ deref!(TransferEncoding -> Vec<Encoding>);
/// # use hyper::header::Headers;
/// # let mut headers = Headers::new();
/// headers.set(TransferEncoding(vec![Gzip, Chunked]));
#[deriving(Clone, PartialEq)]
#[derive(Clone, PartialEq)]
pub enum Encoding {
/// The `chunked` encoding.
Chunked,