diff --git a/src/bin/write_sample.rs b/src/bin/write_sample.rs index e108692d..155228eb 100644 --- a/src/bin/write_sample.rs +++ b/src/bin/write_sample.rs @@ -13,7 +13,7 @@ fn main() match doit(filename) { Ok(_) => println!("File written to {}", filename), - Err(e) => println!("Error: {}", e), + Err(e) => println!("Error: {:?}", e), } } diff --git a/src/reader.rs b/src/reader.rs index 3c31d6ac..e6e6e9e0 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -32,7 +32,7 @@ use bzip2::reader::BzDecompressor; /// Ok(()) /// } /// -/// println!("Result: {}", doit()); +/// println!("Result: {:?}", doit()); /// ``` pub struct ZipReader { @@ -109,28 +109,28 @@ impl ZipReader { CompressionMethod::Stored => { - box + Box::new( Crc32Reader::new( limit_reader, - file.crc32) + file.crc32)) as Box }, CompressionMethod::Deflated => { let deflate_reader = limit_reader.deflate_decode(); - box + Box::new( Crc32Reader::new( deflate_reader, - file.crc32) + file.crc32)) as Box }, CompressionMethod::Bzip2 => { let bzip2_reader = BzDecompressor::new(limit_reader); - box + Box::new( Crc32Reader::new( bzip2_reader, - file.crc32) + file.crc32)) as Box }, _ => return unsupported_zip_error("Compression method not supported"), diff --git a/src/writer.rs b/src/writer.rs index 6609cde6..7195b11c 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -41,7 +41,7 @@ enum GenericZipWriter /// Ok(()) /// } /// -/// println!("Result: {}", doit()); +/// println!("Result: {:?}", doit()); /// ``` pub struct ZipWriter { @@ -209,7 +209,7 @@ impl Drop for ZipWriter match self.finalize() { Ok(_) => {}, - Err(e) => warn!("ZipWriter drop failed: {}", e), + Err(e) => warn!("ZipWriter drop failed: {:?}", e), } } }