diff options
| author | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2016-06-07 21:29:35 +0530 |
|---|---|---|
| committer | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2016-06-07 21:29:35 +0530 |
| commit | 96c85f4e3765ae415852e19c0c899f419f49e2fc (patch) | |
| tree | 7e93a6553b6832234265fd15abf735d1f8be14d9 | |
| parent | 1c975eafa934e291e4f94b7252faae767de17313 (diff) | |
| download | rust-96c85f4e3765ae415852e19c0c899f419f49e2fc.tar.gz rust-96c85f4e3765ae415852e19c0c899f419f49e2fc.zip | |
run rustfmt on libflate folder
| -rw-r--r-- | src/libflate/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libflate/lib.rs b/src/libflate/lib.rs index b578b064d67..63913f2878c 100644 --- a/src/libflate/lib.rs +++ b/src/libflate/lib.rs @@ -31,7 +31,7 @@ extern crate libc; -use libc::{c_void, size_t, c_int}; +use libc::{c_int, c_void, size_t}; use std::fmt; use std::ops::Deref; use std::ptr::Unique; @@ -76,9 +76,9 @@ impl Drop for Bytes { #[link(name = "miniz", kind = "static")] #[cfg(not(cargobuild))] -extern {} +extern "C" {} -extern { +extern "C" { /// Raw miniz compression function. fn tdefl_compress_mem_to_heap(psrc_buf: *const c_void, src_buf_len: size_t, @@ -154,8 +154,8 @@ pub fn inflate_bytes_zlib(bytes: &[u8]) -> Result<Bytes, Error> { #[cfg(test)] mod tests { #![allow(deprecated)] - use super::{inflate_bytes, deflate_bytes}; - use std::__rand::{thread_rng, Rng}; + use super::{deflate_bytes, inflate_bytes}; + use std::__rand::{Rng, thread_rng}; #[test] fn test_flate_round_trip() { |
