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.
|
//! Possible ZIP compression methods.
|
||||||
|
|
||||||
/// Compression methods for the contents of a ZIP file.
|
/// Compression methods for the contents of a ZIP file.
|
||||||
#[deriving(FromPrimitive, Clone, Copy)]
|
#[derive(FromPrimitive, Clone, Copy)]
|
||||||
pub enum CompressionMethod
|
pub enum CompressionMethod
|
||||||
{
|
{
|
||||||
/// The file is stored (no compression)
|
/// The file is stored (no compression)
|
||||||
|
|
|
@ -7,7 +7,7 @@ use std::error;
|
||||||
pub type ZipResult<T> = Result<T, ZipError>;
|
pub type ZipResult<T> = Result<T, ZipError>;
|
||||||
|
|
||||||
/// Error type for Zip
|
/// Error type for Zip
|
||||||
#[deriving(Show)]
|
#[derive(Show)]
|
||||||
pub enum ZipError
|
pub enum ZipError
|
||||||
{
|
{
|
||||||
/// An Error caused by I/O
|
/// An Error caused by I/O
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
use time;
|
use time;
|
||||||
|
|
||||||
#[deriving(Clone)]
|
#[derive(Clone)]
|
||||||
/// Structure representing a ZIP file.
|
/// Structure representing a ZIP file.
|
||||||
pub struct ZipFile
|
pub struct ZipFile
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,7 +50,7 @@ pub struct ZipWriter<W>
|
||||||
stats: ZipWriterStats,
|
stats: ZipWriterStats,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deriving(Default)]
|
#[derive(Default)]
|
||||||
struct ZipWriterStats
|
struct ZipWriterStats
|
||||||
{
|
{
|
||||||
crc32: u32,
|
crc32: u32,
|
||||||
|
|
Loading…
Add table
Reference in a new issue