Skip to content

Commit

Permalink
Give up on box_syntax for now :(
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKniephoff committed Mar 26, 2024
1 parent 95171f5 commit 8ad812f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![feature(stmt_expr_attributes)]
#![feature(rustc_attrs)]

mod screen;

use std::{cell::RefCell, rc::Rc, collections::VecDeque};
Expand Down Expand Up @@ -224,7 +221,7 @@ fn snek() {
{
let state = Rc::clone(&state);
let screen = Rc::clone(&screen);
*main_loop.borrow_mut() = Some(Closure::wrap(#[rustc_box] Box::new(move |time: f64| {
*main_loop.borrow_mut() = Some(Closure::wrap(Box::new(move |time: f64| {

const TIME_STEP: f64 = 500.0;

Expand Down

0 comments on commit 8ad812f

Please sign in to comment.