Skip to content

Commit 96c85f4

Browse files
committed
run rustfmt on libflate folder
1 parent 1c975ea commit 96c85f4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libflate/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
extern crate libc;
3333

34-
use libc::{c_void, size_t, c_int};
34+
use libc::{c_int, c_void, size_t};
3535
use std::fmt;
3636
use std::ops::Deref;
3737
use std::ptr::Unique;
@@ -76,9 +76,9 @@ impl Drop for Bytes {
7676

7777
#[link(name = "miniz", kind = "static")]
7878
#[cfg(not(cargobuild))]
79-
extern {}
79+
extern "C" {}
8080

81-
extern {
81+
extern "C" {
8282
/// Raw miniz compression function.
8383
fn tdefl_compress_mem_to_heap(psrc_buf: *const c_void,
8484
src_buf_len: size_t,
@@ -154,8 +154,8 @@ pub fn inflate_bytes_zlib(bytes: &[u8]) -> Result<Bytes, Error> {
154154
#[cfg(test)]
155155
mod tests {
156156
#![allow(deprecated)]
157-
use super::{inflate_bytes, deflate_bytes};
158-
use std::__rand::{thread_rng, Rng};
157+
use super::{deflate_bytes, inflate_bytes};
158+
use std::__rand::{Rng, thread_rng};
159159

160160
#[test]
161161
fn test_flate_round_trip() {

0 commit comments

Comments
 (0)