File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3131
3232extern crate libc;
3333
34- use libc:: { c_void , size_t , c_int } ;
34+ use libc:: { c_int , c_void , size_t } ;
3535use std:: fmt;
3636use std:: ops:: Deref ;
3737use 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) ]
155155mod 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 ( ) {
You can’t perform that action at this time.
0 commit comments