Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindln committed Aug 7, 2019
1 parent 1f555a5 commit a149e43
Show file tree
Hide file tree
Showing 19 changed files with 879 additions and 873 deletions.
15 changes: 7 additions & 8 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ extern crate miniz_oxide;
extern crate miniz_oxide_c_api;
extern crate test;


use test::Bencher;
use libc::c_void;
use std::io::Read;
use std::{ops, ptr};
use libc::c_void;
use test::Bencher;

use miniz_oxide::deflate::compress_to_vec;
use miniz_oxide::deflate::core::{create_comp_flags_from_zip_params, CompressorOxide};
Expand Down Expand Up @@ -142,13 +141,13 @@ mod oxide {
tdefl_compress_mem_to_heap,
1,
"benches/data/compressed"
);
);
compress_bench!(
compress_compressed_lvl_6,
tdefl_compress_mem_to_heap,
6,
"benches/data/compressed"
);
);
compress_bench!(
compress_compressed_lvl_9,
tdefl_compress_mem_to_heap,
Expand Down Expand Up @@ -221,7 +220,7 @@ mod oxide {
}

mod miniz {
use libc::{c_void, c_int};
use libc::{c_int, c_void};

/// Functions from miniz
/// We add the link attribute to make sure
Expand Down Expand Up @@ -263,13 +262,13 @@ mod miniz {
1,
"benches/data/bin"
);
compress_bench!(
compress_bench!(
compress_bin_lvl_6,
tdefl_compress_mem_to_heap,
6,
"benches/data/bin"
);
compress_bench!(
compress_bench!(
compress_bin_lvl_9,
tdefl_compress_mem_to_heap,
9,
Expand Down
2 changes: 1 addition & 1 deletion miniz_oxide/src/deflate/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub struct LocalBuf {
impl Default for LocalBuf {
fn default() -> LocalBuf {
LocalBuf {
b: [0; OUT_BUF_SIZE]
b: [0; OUT_BUF_SIZE],
}
}
}
Loading

0 comments on commit a149e43

Please sign in to comment.