closure syntax changed

This commit is contained in:
edef 2015-02-23 23:14:58 -05:00
parent e51cfa1b7b
commit 8515bf0fa1
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ static mut ctx_slot: *mut Context = 0 as *mut Context;
#[bench]
fn swap(b: &mut test::Bencher) {
unsafe {
let mut ctx = Context::new(move |:| {
let mut ctx = Context::new(move || {
let ctx_ptr = ctx_slot;
loop {
(*ctx_ptr).swap()

View File

@ -7,7 +7,7 @@ static mut ctx_slot: *mut Context = 0 as *mut Context;
fn main() {
unsafe {
let mut ctx = Context::new(move |:| {
let mut ctx = Context::new(move || {
println!("it's alive!");
(*ctx_slot).swap();
});