File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 31
31
32
32
extern crate libc;
33
33
34
- use libc:: { c_void , size_t , c_int } ;
34
+ use libc:: { c_int , c_void , size_t } ;
35
35
use std:: fmt;
36
36
use std:: ops:: Deref ;
37
37
use std:: ptr:: Unique ;
@@ -76,9 +76,9 @@ impl Drop for Bytes {
76
76
77
77
#[ link( name = "miniz" , kind = "static" ) ]
78
78
#[ cfg( not( cargobuild) ) ]
79
- extern { }
79
+ extern "C" { }
80
80
81
- extern {
81
+ extern "C" {
82
82
/// Raw miniz compression function.
83
83
fn tdefl_compress_mem_to_heap ( psrc_buf : * const c_void ,
84
84
src_buf_len : size_t ,
@@ -154,8 +154,8 @@ pub fn inflate_bytes_zlib(bytes: &[u8]) -> Result<Bytes, Error> {
154
154
#[ cfg( test) ]
155
155
mod tests {
156
156
#![ 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 } ;
159
159
160
160
#[ test]
161
161
fn test_flate_round_trip ( ) {
You can’t perform that action at this time.
0 commit comments