closure syntax changed

pull/1/head
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] #[bench]
fn swap(b: &mut test::Bencher) { fn swap(b: &mut test::Bencher) {
unsafe { unsafe {
let mut ctx = Context::new(move |:| { let mut ctx = Context::new(move || {
let ctx_ptr = ctx_slot; let ctx_ptr = ctx_slot;
loop { loop {
(*ctx_ptr).swap() (*ctx_ptr).swap()

View File

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