diff --git a/src/crc32.rs b/src/crc32.rs index 673a9109..2fba0aeb 100644 --- a/src/crc32.rs +++ b/src/crc32.rs @@ -2,7 +2,7 @@ use std::io; -static CRC32_TABLE : [u32, ..256] = [ +static CRC32_TABLE : [u32; 256] = [ 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, diff --git a/src/lib.rs b/src/lib.rs index 7cecc37a..ac4a5f45 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,7 @@ #![feature(phase)] #![feature(unsafe_destructor)] +#![feature(old_orphan_check)] #![warn(missing_docs)] #[phase(plugin, link)] extern crate log; diff --git a/src/reader_spec.rs b/src/reader_spec.rs index 9ceb6389..bf715a94 100644 --- a/src/reader_spec.rs +++ b/src/reader_spec.rs @@ -1,4 +1,5 @@ use std::io; +use std::num::FromPrimitive; use result::{ZipResult, ZipError}; use types::ZipFile; use compression::CompressionMethod;