Skip to content

Commit

Permalink
refactor(typeck): remove unnecessary boxing
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective committed Jul 14, 2024
1 parent a3756e9 commit 1f72d8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/origlang-typecheck/src/type_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ impl TryIntoTypeCheckedForm for RootAst {
}

pub struct TypeChecker {
ctx: Box<RefCell<Context>>
ctx: RefCell<Context>
}

impl TypeChecker {
Expand Down Expand Up @@ -529,7 +529,7 @@ impl TypeChecker {
#[must_use]
pub fn new() -> Self {
Self {
ctx: Box::new(RefCell::new(Context::empty())),
ctx: RefCell::new(Context::empty()),
}
}

Expand Down

0 comments on commit 1f72d8e

Please sign in to comment.