From f61605a865181c1202ab0cd1a2cb4cd71a0bae42 Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Mon, 28 Oct 2024 20:00:11 +0100 Subject: [PATCH] add Send+Sync trait bound to TypeDict --- src/dict.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dict.rs b/src/dict.rs index 67e22b3..333f8dd 100644 --- a/src/dict.rs +++ b/src/dict.rs @@ -8,7 +8,7 @@ pub enum TypeID { Var(u64) } -pub trait TypeDict { +pub trait TypeDict : Send + Sync { fn insert(&mut self, name: String, id: TypeID); fn add_varname(&mut self, vn: String) -> TypeID; fn add_typename(&mut self, tn: String) -> TypeID;