diff --git a/.github/workflows/Threading.yml b/.github/workflows/Threading.yml index 832421a..de4a5b2 100644 --- a/.github/workflows/Threading.yml +++ b/.github/workflows/Threading.yml @@ -24,7 +24,7 @@ jobs: run: | cargo build --features="repl" --release - - name: Thread Safe + - name: Thread Safe (still unsafe) run: | ./target/release/3body -c ' 给 cx 以 程心(); diff --git a/interpreter/src/evaluator/builtins.rs b/interpreter/src/evaluator/builtins.rs index 5c71023..59f968c 100644 --- a/interpreter/src/evaluator/builtins.rs +++ b/interpreter/src/evaluator/builtins.rs @@ -369,7 +369,7 @@ fn three_body_threading(_: Vec) -> Object { Object::Function(params, stmts, env ) => { let mut ev = Evaluator { env: { - let mut scoped_env = Env::new_with_outer(Rc::clone(&env)); + let mut scoped_env = Env::new_with_outer(Rc::clone(&env)); // still thread unsafe let list = params.iter().zip({ match &args[1] { Object::Array(arr) => arr,