Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Apr 9, 2024
1 parent 1f48de5 commit c6948ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/candid/src/types/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@ pub fn unroll(t: &Type) -> Type {
}

thread_local! {
static ENV: RefCell<BTreeMap<TypeId, Type>> = RefCell::new(BTreeMap::new());
static ENV: RefCell<BTreeMap<TypeId, Type>> = const { RefCell::new(BTreeMap::new()) };
// only used for TypeContainer
static ID: RefCell<BTreeMap<Type, TypeId>> = RefCell::new(BTreeMap::new());
static ID: RefCell<BTreeMap<Type, TypeId>> = const { RefCell::new(BTreeMap::new()) };
static NAME: RefCell<TypeName> = RefCell::new(TypeName::default());
}

Expand Down

0 comments on commit c6948ee

Please sign in to comment.