diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2014-11-26 08:12:18 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2014-12-14 04:21:56 -0500 |
| commit | 5c3d3989192f88b16f39d554c3844700c91b6c8e (patch) | |
| tree | 59c77544a06d3f4c2d363b5afe37c91a444e78d6 /src/libflate | |
| parent | 394f6846b80240480f8d7ce4b3d5d4c42ba85201 (diff) | |
| download | rust-5c3d3989192f88b16f39d554c3844700c91b6c8e.tar.gz rust-5c3d3989192f88b16f39d554c3844700c91b6c8e.zip | |
Mostly rote conversion of `proc()` to `move||` (and occasionally `Thunk::new`)
Diffstat (limited to 'src/libflate')
| -rw-r--r-- | src/libflate/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libflate/lib.rs b/src/libflate/lib.rs index cc36c2eef45..2c8e5638e49 100644 --- a/src/libflate/lib.rs +++ b/src/libflate/lib.rs @@ -21,7 +21,7 @@ #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png", html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://doc.rust-lang.org/nightly/")] -#![feature(phase)] +#![feature(phase, unboxed_closures)] #[cfg(test)] #[phase(plugin, link)] extern crate log; @@ -59,7 +59,7 @@ fn deflate_bytes_internal(bytes: &[u8], flags: c_int) -> Option<CVec<u8>> { &mut outsz, flags); if !res.is_null() { - Some(CVec::new_with_dtor(res as *mut u8, outsz as uint, proc() libc::free(res))) + Some(CVec::new_with_dtor(res as *mut u8, outsz as uint, move|:| libc::free(res))) } else { None } @@ -84,7 +84,7 @@ fn inflate_bytes_internal(bytes: &[u8], flags: c_int) -> Option<CVec<u8>> { &mut outsz, flags); if !res.is_null() { - Some(CVec::new_with_dtor(res as *mut u8, outsz as uint, proc() libc::free(res))) + Some(CVec::new_with_dtor(res as *mut u8, outsz as uint, move|:| libc::free(res))) } else { None } |
