change #[deriving(..)] to #[derive(..)]
This commit is contained in:
parent
f83994820c
commit
f45a558dac
4 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
use time;
|
||||
|
||||
#[deriving(Clone)]
|
||||
#[derive(Clone)]
|
||||
/// Structure representing a ZIP file.
|
||||
pub struct ZipFile
|
||||
{
|
||||
|
|
|
@ -50,7 +50,7 @@ pub struct ZipWriter<W>
|
|||
stats: ZipWriterStats,
|
||||
}
|
||||
|
||||
#[deriving(Default)]
|
||||
#[derive(Default)]
|
||||
struct ZipWriterStats
|
||||
{
|
||||
crc32: u32,
|
||||
|
|
Loading…
Add table
Reference in a new issue