change #[deriving(..)] to #[derive(..)]

This commit is contained in:
Mathijs van de Nes 2015-01-04 10:51:14 +01:00
parent f83994820c
commit f45a558dac
4 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
//! Possible ZIP compression methods.
/// Compression methods for the contents of a ZIP file.
#[deriving(FromPrimitive, Clone, Copy)]
#[derive(FromPrimitive, Clone, Copy)]
pub enum CompressionMethod
{
/// The file is stored (no compression)

View file

@ -7,7 +7,7 @@ use std::error;
pub type ZipResult<T> = Result<T, ZipError>;
/// Error type for Zip
#[deriving(Show)]
#[derive(Show)]
pub enum ZipError
{
/// An Error caused by I/O

View file

@ -2,7 +2,7 @@
use time;
#[deriving(Clone)]
#[derive(Clone)]
/// Structure representing a ZIP file.
pub struct ZipFile
{

View file

@ -50,7 +50,7 @@ pub struct ZipWriter<W>
stats: ZipWriterStats,
}
#[deriving(Default)]
#[derive(Default)]
struct ZipWriterStats
{
crc32: u32,